无法从 nsurl 获取数据

Unable to fetch data from nsurl

NSURL *url = [NSURL URLWithString:[self.imageArray objectAtIndex:indexPath.row]];
NSLog(@"My URL : %@",url);

NSData *data = [NSData dataWithContentsOfURL:url];
NSLog(@"New Data : %@",data);

UIImage *tmpImage = [[UIImage alloc] initWithData:data];

cell.imageView.image = tmpImage;

我想我遇到了你的问题,像我在你的项目中上传的图片一样检查这个。

我也制作了一个关于如何在您的项目中添加此设置的 gif,只需按照我的 gif 中的步骤即可。