Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 UIProgressView 我正在尝试更改进度但从未更新。我的“慢”操作是从 NSoperation/NSOperation 队列完成的,所以它应该是多线程的。
您是否已经经历过这种情况,或者您有解决这个问题的想法吗?
谢谢 :)
用户界面的更新通常应该在主线程上完成。尝试使用-performSelectorOnMainThread:withObject:waitUntilDone:更新您的UIProgressView.
-performSelectorOnMainThread:withObject:waitUntilDone:
UIProgressView