When an iOS app rotates it will reveal a black background when the app is between portrait and landscape. Is it possible to change this color from the default black to white? Changing the UIWindow's background color will not help. Here is an example of the black background in Safari during rotation:
我做过类似的事情,但现在找不到来源,但想法如下:
创建并添加一个明显更大的视图作为后视图并将其居中。
Add the UIWebView
作为这个背景为白色的大视图的子视图。
重新定位中心UIWebView
, too.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)