I need to draw image async, but [UIImageView setImage:someImage] is not thread safe. So I have to implement a thread safe draw function by myself.
Is it possible in iOS? And how? I know how to use Quartz do custom drawing.
Special thanks!
I need to draw image async, but [UIImageView setImage:someImage] is not thread safe. So I have to implement a thread safe draw function by myself.
Is it possible in iOS? And how? I know how to use Quartz do custom drawing.
Special thanks!
Usually you just need to load the images in the background. And then draw them on the foreground thread. Have a look here loading images from a background thread using blocks
You can use the drawsAsynchronously
property of CALayer
and implement your own imageView/imageLayer. This may help to improve the responsiveness of your GUI.