Created
May 14, 2012 07:59
-
-
Save mogeta/2692588 to your computer and use it in GitHub Desktop.
easy miss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSURLResponse* response=nil;// not =nil; | |
NSError* error; | |
NSURL* url = [NSURL URLWithString:@"http://hogehoge"]; | |
NSURLRequest* request = [NSURLRequest requestWithURL:url]; | |
[NSURLConnection sendSynchronousRequest:req returningResponse:&response error:&error]; | |
NSLog(@"%@",response);// <null> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
イージーミス。
NSURLResponse にnil入れといたらそらそうなるわ。というお話。