我正在尝试在App Notification Widget内的集合视图中显示图像列表。 它给我错误“无法加载”如果我从网址加载,除了它的工作正常。 有人可以帮我吗?
TodaysCusCell *catTrendingCusCell = (TodaysCusCell *)[collectionView dequeueReusableCellWithReuseIdentifier:@"TodaysCusCellID" forIndexPath:indexPath];
NSDictionary *trendingDic = (NSDictionary *)[trendingArr objectAtIndex:indexPath.row];
//Loading Images
NSString *imageURL = [trendingDic objectForKey:@"image_url"];
[catTrendingCusCell.trendingImgView sd_setImageWithURL:[NSURL URLWithString:imageURL] placeholderImage:[UIImage imageNamed:@"grayBackground"]];