开发者

Activity indicator timing

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜