Whats the best way to fade out a webview when its loading to make sure people know its loading?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use a custom
UIViewthat is a semi-transparent gray color and display it on top of the UIWebView. This UIView’s controller should be a delegate to theUIWebViewso it knows when it is done loading and can then dismiss itself. Edit: this also gives you the advantage of being able to use your ownUIActivityViewIndicator(spinning wheel) placed wherever you like to be more prominent than the status bar shared one.Alternatively, you could subclass
UIAlertViewand take out the background image (that blue box) and thenshowthisUIAlertViewwhile it is loading.Edit for tutorial link: Tutorial Link is a tutorial telling you exactly how to do just this (method 1)