Starting with iOS 4.0 , you can draw inside a UIView -drawRect: in the background thread:
- Drawing graphical context in UIKit is now thread safe. In particular:
- The routines used to access and manage the graphics context can now correctly handle contexts located on different threads.
- The line and drawing pattern are now thread safe.
- Using color and font objects in multiple threads is now safe.
See also their comments in Technical Q & A QA1637 regarding this in iOS 4.0.
Any version of iOS must still have this drawing in the main thread.
source share