简体   繁体   中英

Main thread doesn't respond while NSOperationQueue is running its task

I use NSOperationQueue to create UIImage s in the background,
upon image creation, main thread gets notified and set the image to a view.

While it works and all, main thread is not responding as I hoped while the NSOperationQueue is working.

The point of using thread here is to let UI be responsive to user interactions.
Am I missing something here?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM