3

Since IOS9, the scrolling of the uitableview of my application is jerky. I use customcell which have to slow down the display but I had no problem on ios8. Have you the same thing?

After investigation , creating UIImage freezes scrolling. Are there behavioral changes in IOS9 UIImage ?

Antoine Lenoir
  • 524
  • 1
  • 3
  • 17
  • What does your uiimage code within the cell look like? – oyvindhauge Sep 22 '15 at 10:58
  • self.someImageView.image = UIImage(named: "some_image") – Antoine Lenoir Sep 22 '15 at 11:03
  • yeah, perfs with uitableview/uicollectionview since iOS9 are shit... a lot of layout says the time profiler. – Vinzius Sep 24 '15 at 08:02
  • Is there an alternative solution for creating complex uitableview / uicollectionview ? – Antoine Lenoir Sep 24 '15 at 09:36
  • Anyone else experience a similar problem? I've got custom cells that really struggle on an iphone 6, as @Vinzius mentioned, with about 100 percent time spent on layout in the profiler. I wonder what could cause this and how to fix it, as my own classes are not in the stack. Is it the images? Those loaded from the bundle are static after the first configuration and don't get modified after that; others are from core data and initialized with NSData objects. Was no problem before iOS 9. – Tobi Nary Oct 13 '15 at 08:29
  • 1
    I suggest you to load images async and dispatch the setImage on the main thread. In my case I cached the placeholders (always the same images) in an array... – Vinzius Oct 13 '15 at 21:05

1 Answers1

0

Not sure exactly what your problem is but here a few different things you can try that might make your scrolling smoother:

  1. Be careful of the size of your UIImage's, if you have multiple large photos in your UITableView it might cause it to not have smooth scrolling. I personally export my photos so that they are around a few hundred KB each.
  2. Load your UITableView and UIImage's in the viewDidLoad method if you aren't already. Otherwise you might be loaded them as you are scrolling.

Also refer to this Tricks for improving iPhone UITableView scrolling performance? for some more ways to improve your UITableView scrolling.

Community
  • 1
  • 1
Hunter
  • 313
  • 5
  • 20