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,259
  • 3
  • 30
  • 36
Matic1911
  • 381
  • 1
  • 3
  • 13

2 Answers2

6

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

LC 웃
  • 18,888
  • 9
  • 57
  • 72
Sumit Jangra
  • 651
  • 5
  • 16
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