Non-lazy image loading in iOS

后端 未结 3 596
抹茶落季
抹茶落季 2020-11-29 15:46

I\'m trying to load UIImages in a background thread and then display them on the iPad. However, there\'s a stutter when I set the imageViews\' view property to the image. I

3条回答
  •  有刺的猬
    2020-11-29 16:16

    How about UIImage+ImmediateLoad.m?

    It decodes images immediately. Besides UIImage -initWithContentsOfFile:, -imageWithCGImage: and CG* are thread-safe after iOS4.

提交回复
热议问题