I have a problem. I have a UITableViewCell with images. The images are dynamically loaded from the application bundle. The function is about 200 lines with a lot of if satements in it. I basically extract the icon of the file acording to the suffix of the file, if the file is an Application I parse the info.plist and extract the filename of the icon. if the filename in the plist has no suffix I append it and then I chose the biggest icon. The function then returns the fileURL of the file either in my app bundle or in the app bundle of the app I parsed. I also do more stuff, but thats to complicated to explain.
I am already using SDWebImage
, thats why I return a NSURL
and not the UIImage
.
The problem is, that the scrolling is lagging very hard on older devices without the A7 CPU.
My thought is that I put the function in another NSOperationQueue
, but I am not quite sure because I am already using the SDWebImage
with compblock
. The images dont have to be loaded instant, it can take some, meanwhile I display a placeholder image.
Does anyone have an idea how I can make this fluid?
Thanks, David
I just fixed my issue, I executed my own NSUserDefault with costume en- and decryption multiple times in on function! I fixed it by minimizing it and calling it once and store the value. Thanks for all your help!