iOS.UI.UIWindow
2015-06-24 16:04
495 查看
UIWindow
1. UIWindow
2. UIWindow的使用场景
2.1 额外添加的Window需要手动进行旋转
最近有遇到一个UIWindow的使用场景:在ApplicationDelegate.window之外额外创建了一个UIWindow对象(下文称为:otherWin)。otherWin的windowLevel属性设置为UIWindowLevelAlert。关于windowLevel参考 Ref[2]
现象是:ApplicationDelegate.window可以依据current device orientation进行适当的旋转,而otherWin则不进行旋转。
解决方法如Ref[1]所示。
在iOS 8中针对UIWindow作的改变,参见 Ref[8]。
Reference
1. iPhone - UIWindow rotating depending on current orientation?2. Using multiple UIWindows in iOS applications
http://shaune.com.au/using-multiple-uiwindows-in-ios-applications/
3. Understanding Windows and Screens
https://developer.apple.com/library/ios/documentation/WindowsViews/Conceptual/WindowAndScreenGuide/WindowScreenRolesinApp/WindowScreenRolesinApp.html
4. UIWindow in iOS (ToRead) (AAAA+)
www.fantageek.com/1317/uiwindow-in-ios/
5. iOS UIScreen and UIWindow
http://isometrick.blogspot.tw/2013/09/ios-uiscreen-and-uiwindow.html
6. UIWindow orientation issues (two UIWindows and landscape mode)
http://fileraid.us/uiwindow-orientation-issues-two-uiwindows-and-landscape-mode/
7. Technical Note TN2244 Launching your iPhone Application in Landscape
8. Custom UIWindows do not rotate correctly in iOS 8
相关文章推荐
- LeetCode96:Unique Binary Search Trees
- 关于EL表达式中requestScope和param区别,el表达式与jstl标签
- .NET使用ueditor时不能上传图片的问题
- vbox uuid已存在
- quick-3.5 无法使用模拟器修改
- 黑马程序员——Java基础——continue、break、return之间的区别
- EasyUI常用控件的禁用方法
- UVa 11577 - Letter Frequency
- 单据UI代码开发
- primary key与unique的区别
- golang在32位系统下atomic.AddUint64导致程序崩溃及解决办法
- 设置父视图透明度子视图透明度也改变
- UIButton 如何设置为圆角矩形
- [SoapUI] UrlEncode编码/UrlDecode解码网站
- Android API Guides - Introduction
- 设置UITableView section间距
- 创建多个UIButton其中只有一个显示选中效果
- iOS UIImageView 大小调整
- UE编辑器
- Xcode7 UI自动化测试详解 带demo UITests