开发者

Activity indicator timing

开发者 https://www.devze.com 2023-03-05 03:18 出处:网络
If I\'ve got code like this: .... // start activity indicator [class callMethod]; // stop activity indicator

If I've got code like this:

....
// start activity indicator
[class callMethod];
// stop activity indicator
...

If [class callMethod] takes 10 seconds (as an example), the indicator will be animated in this time right? After calling the metho开发者_如何学God the code will be blocked?


Only if you call the [class callMethod] on any thread other than main (because this will block UI, which will in turn block the indicator from spinning.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号