Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/100.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
UICollectionView在iOS 10中不显示图像_Ios_Objective C_Uiimageview_Uicollectionview_Ios10 - Fatal编程技术网

UICollectionView在iOS 10中不显示图像

UICollectionView在iOS 10中不显示图像,ios,objective-c,uiimageview,uicollectionview,ios10,Ios,Objective C,Uiimageview,Uicollectionview,Ios10,MyUICollectionView在所有版本中都可以正常工作,但在iOS 10中除外。我正在使用UIImageView显示图像 我将图像保存在应用程序的ContentFolder中 我使用的是NSData*imageData=[NSData dataWithContentsOfFile:filename]获取图像数据,UIImage*image=[UIImage-imageWithData:imageData]创建我要显示的图像 有人知道问题出在哪里吗?将集合视图的isPrefetchingE

My
UICollectionView
在所有版本中都可以正常工作,但在iOS 10中除外。我正在使用
UIImageView
显示图像

我将图像保存在应用程序的
ContentFolder

我使用的是
NSData*imageData=[NSData dataWithContentsOfFile:filename]
获取图像数据,
UIImage*image=[UIImage-imageWithData:imageData]
创建我要显示的图像


有人知道问题出在哪里吗?

将集合视图的
isPrefetchingEnabled
属性设置为false(在iOS 10中默认为true)。

剪贴簿和拐角半径可能会产生影响。这解决了我的问题

谢谢你,这很有效!你们是从哪里找到那个房子的?我刚刚在苹果开发者网站上读到ios10中的uicollectionview更新。