Does UIView's -drawRect:
method have to be drawn on the main thread or can CADisplayLink call -setNeedsDisplay
on a custom view in a different run loop?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
As of iOS 4.0, you can draw within a UIView's
-drawRect:
on a background thread:See also their comments in Technical Q&A QA1637 regarding this in iOS 4.0.
Any version of iOS before that still needs to have this drawing be on the main thread.
All UIKit calls should be done on the main thread.