Coding iOS
Jul 12, 2017
Never block main thread
Why?
UI rendering (
UIKit
) works in the main thread.
How?
All heavy lifting (time-consuming) should be moved out of main thread, including:
Disk I/O
Networking, e.g., API calls
Large computations
Use GCD, and/or Operation
Newer Post
Older Post
Home