阅读背景:

检查iphone中进程间的Internet连接

来源:互联网 

I have the following code

我有以下代码

NSURL *url = [NSURL URLWithString:@"https://wallpaperswide.com/download/flattened_grass-wallpaper-2800x1050.jpg"];  //Line1
NSData *data = [[NSData alloc] initWithContentsOfURL:url];  //Line2
UIImage *tmpImage = [[UIImage alloc] initWithData:data];  //Line3
NSLog(@"%@",tmpImage);  //Line4
NSURL *url



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: