我编码显示PHPecho
iOS:为什么我在Xcode中获得'Unused variable'?
NSMutableURLRequest *request = [[NSMutableURLRequest alloc]init];
[request setTimeoutInterval:180.0];
[request setURL:[NSURL URLWithString:@"http://localhost:8888/MAMP/signup/getkey.php"]];
[request setHTTPMethod:@"POST"];
NSString *key = [[NSString alloc] initWithData:[NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil] encoding:NSUTF8StringEncoding];
当我编译,我有这样的警告消息:Unused variable key
问题出在哪里?
谢谢!没关系 :) – user1659987