in my app when i click on refresh button, an activity indicator appears. and when tableView is refreshed then it disappears. i want to use a image instead of that activity indicator in such a way that when i click on refresh that image ll come on the whole screen and when view ll b refreshed it ll disappear. how can i do that? thanx in advance
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- back button text does not change
相关文章
- 现在使用swift开发ios应用好还是swift?
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- How do you detect key up / key down events from a
UIActivityIndicatorView
is the spinning thing that is the default busy indicator. It inherits from UIView. If you subclass it and have your owndrawRect:
implementation you should be able to draw any image you like in place of the spinning bars.Basically what you need to do is add a "cover page" view over your current view.
These usually work best if you set the alpha to about 50%.
Hitting the button you can call
addSubview:coverPage
where you init coverPage somewhere with the right attributes.If you want, cover page can have it's own spinners or labels if necessary.
after your refresh completes, just call
[coverPage removeFromSuperview]
to dismiss.