When the user clicks a UIButton, I want a HUD-like Window saying "loading" for a few seconds (maybe 5 seconds). Although my开发者_运维知识库 application doesn't need a loading screen (between views).
Never make the user wait for nothing. 5 seconds is an eternity.
In the interest of education and assuming you will one day need to show a loading indicator this blog may have some info you need.
http://iphonedevcentral.blogspot.com/2010/08/showing-loading-message-over-iphone.html
I've just added an example using a one of my github project here to display / hide a HUD with an activity indicator :
How to display a progress indicator overlay/HUD on iPhone?
精彩评论