所以我有我的联系和方法:
- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
当我在 iPhone 模拟器上运行我的应用程序时,一切正常,但是当我在 iPhone 上运行它时,没有调用这些方法。
有人可以解释一下为什么会这样吗?