开发者

Activity indicator view

How 开发者_如何学Cdoes the activity indicator view work?

Can you just drag and drop this on a screen?


Do you mean a UIActivityIndicatorView or the status bar activity indicator?

If you want to use a UIActivityIndicatorView, create one in code or IB and control it using [activityView startAnimating] and [activityView stopAnimating]. To use the status bar activity indicator, you can show and hide it like this:

[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;

// do your network stuff    

[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;


xode 4.5.1 add activity view controller simply drag and drop in to the view after that click on activity view controller then control+drag to the .h file set appropriate name next in the .m we can sysnthesize it and start using [activityview startAnimating] we can use hide when we need to display set activityview.hidden=True ifnot set as False

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜