开发者

Need advise about loading screen on iPhone

could you show me some algorithm or example code to display like that picture with or with out animation

thanks for all advise

开发者_运维问答

Need advise about loading screen on iPhone


Add a semi-transparent view (regular view with black background with opacity = 80) that will cover the entire screen (in IB or in code), add a UIActivityIndicator and a label to the semi-transparent view, set it hidden.

If you use the IB then you should also create IBOutlets for the semi-transparent view (loadingView) and for the activity indicator (loadingAnimationIndicator)...

Use the next methods to show / hide the "loading view":

- (void)showLoading {
  [loadingAnimationIndicator startAnimating];
  loadingView.hidden = NO;
} 
- (void)hideLoading {
  loadingView.hidden = YES;
  [loadingAnimationIndicator stopAnimating];
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜