iOS.UI.UIWindow
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
iOS.UI.UIWindow的更多相关文章
- [IOS]IOS UI指南
[IOS]IOS UI指南 众所周知,IOS的界面设计,越来越流行,可以说都形成了一个标准,搜集了一些资料,供自己以后学习使用! iOS Human Interface Guidelines (中文翻 ...
- IOS UI 第八篇:基本UI
实现图片的滚动,并且自动停止在每张图片上 - (void)viewDidLoad{ [super viewDidLoad]; UIScrollView *scrollView = [[U ...
- 国外IOS UI指南
国外IOS UI指南 众所周知,IOS的界面设计,越来越流行,可以说都形成了一个标准,搜集了一些资料,供自己以后学习使用! iOS Human Interface Guidelines (中文翻译) ...
- iOS UI的几种模式
iOS UI的几种模式: 1.平凡模式(原生控件组合): 2.新闻模式: 3.播放器模式: 4.微博模式:
- 通过实现一个TableView来理解iOS UI编程
推荐一篇神作: 通过实现一个TableView来理解iOS UI编程 http://blog.jobbole.com/61101/
- iOS 关于UIWindow 的认识
UIWindow是一种特殊的UIView,通常在一个app中只会有一个UIWindow iOS程序启动完毕后,创建的第一个视图控件就是UIWindow,接着创建控制器的view,最后将控制器的view ...
- [iOS UI进阶 - 0] Quiartz2D
A.简介 1. 需要掌握的 drawRect:方法的使用 常见图形的绘制:线条.多边形.圆 绘图状态的设置:文字颜色.线宽等 图形上下文状态的保存与恢复 图形上下文栈 1.基本图形绘制* 线段(线宽. ...
- IOS UI 第二篇:基本UI
1.UI书写: 一个小练习图片如下: 代码如下: @implementation AppDelegate{ UIControl *control; UILabel *l ...
- [iOS UI设计笔记整理汇总]
8.UIsearchbar放到Navigationbar 上(意思是建个View作为titleview) //此处调用的是第三方封装的SearchBar,也可以自定义. self.searchBarW ...
随机推荐
- shiro 密码的MD5盐值加密
- EF AutoMaper
Mapper.CreateMap<Source,Dest>(); 该方法已弃用,使用下面这个 Mapper.Initialize(x=>x.CreateMap<Source,D ...
- 函数练习以及 if else 三元运算
- Ubuntu系统下手动释放内存
有时候,像mongo这种,对内存只吃不吐的,我们要手动释放一下. drop_caches的详细文档如下:Writing to this will cause the kernel to drop cl ...
- 生成Release apk
[生成Release apk] 1.使用Java SDK中的keytool生成keystore. Java SDK一般位于:C:\Program Files\Java\jdkx.x.x_x\bin. ...
- Using promises
[Using promises] 过去,异步方法这样写: function successCallback(result) { console.log("It succeeded with ...
- MySQL driver for Node
[MySQL driver for Node] 1.安装 2.一个示例 From this example, you can learn the following: Every method you ...
- mysql里max_allowed_packet的作用
MySQL根据配置文件会限制Server接受的数据包大小.有时候大的插入和更新会受 max_allowed_packet 参数限制,导致写入或者更新失败. 查看目前配置: 代码如下: show VAR ...
- Mysql 表 创建 / 删除(基础3)
创建表 语法: #进入数据库 mysql> use mydb123; Database changedmysql> select database();+------------+| d ...
- yum更换阿里源
备份mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 下载新的CentOS-Base.repo ...