How can UIActivityIndicatorView do not stop when the mainThread blocked?

How can UIActivityIndicatorView do not stop when the mainThread blocked?

Answers


I don't think you can as the view uses the main thread itself to perform the animation. If you are performing long-running processes on the main thread (e.g. network, or long computational processes) consider changing your design. E.g. use GCD, threads etc.


Need Your Help

Leaflet and jQuery mobile won't cooperate

javascript jquery html mobile leaflet

everyone. I'm working on a mobile app for a nature reserve (the old map is currently built with flash), and I'm having trouble with jQuery mobile and leaflet. As it stands, I can only get either the

map, then iterate - why?

python for-loop coding-style iteration

In DEAP example (Python framework) there is a code:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.