All corrections/suggestions/advices are welcome! Feel free to ask me any Korean questions.
2012년 9월 23일 일요일
objective c - NSURLConnection sendSynchronousRequest
NSString *url = @"http://pappons.com/test.txt" ;
NSLog(@"getHTTPData: %@" , url ) ;
NSURLResponse* response = nil;
NSURLRequest* urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:url] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0];
NSData* data = [NSURLConnection sendSynchronousRequest:urlRequest returningResponse:&response error:nil] ;
NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
NSLog( @"data: %@" , myString ) ;
source : objective c - NSURLConnection sendSynchronousRequest - missing data - Stack Overflow:
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기