2

My UICollectionView works fine in all version except in iOS 10. I am using UIImageView to show images.

I have images saved in theContentFolder of the application.

I am using NSData *imageData = [NSData dataWithContentsOfFile:filename]; to get the data of the image and UIImage *image = [UIImage imageWithData:imageData]; to create the image I want to show.

Does anyone know what the problem is?

Ketan P
  • 4,139
  • 3
  • 29
  • 35
Matic1911
  • 361
  • 1
  • 3
  • 13

2 Answers2

6

Set collection view's isPrefetchingEnabled property to false (by default it's true in iOS 10).

Anish Parajuli 웃
  • 18,729
  • 9
  • 55
  • 70
Sumit Dhariwal
  • 622
  • 4
  • 15
3

clipsToBounds and cornerRadius could be having an effect. This fixed my issue. iOS 10 GM with xcode 8 GM causes views to disappear due to roundedCorners & clipsToBounds

Community
  • 1
  • 1
Sam Halem
  • 29
  • 5