I use a UIWebView
to show an "About" screen by displaying a bundled HTML file. My app's view hierarchy is: UITabBarController
/ UIViewController
/ UIWebView
.
The problem is that the HTML page has a dark background, and the very first time the tab is tapped, a white background is visible briefly before the web view is displayed. I tried setting the background color of the UIWebView
, but that doesn't solve the problem. The problem occurs whether I load the content in viewDidLoad
or viewWillAppear
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…