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.
mainThread阻塞的时候怎么能UIActivityIndicatorView 不停止呢?
UIActivityIndicatorView
我不认为你可以,因为视图使用主线程本身来执行动画。如果您在主线程上执行长时间运行的进程(例如网络或长时间计算进程),请考虑更改您的设计。例如使用 GCD、线程等。