1:StoryBoard下会自动为UIWindow 初始化,那么此时需要使用自定义UIWindow时,请进行如下编写:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[iConsoleWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window.rootViewController = [[UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil] instantiateInitialViewController]; return YES; }
1:Window层级
2:谁来当keyWindow?
3:Airplay直接投影Window
4:Window上的View横竖屏显示兼容
http://stackoverflow.com/questions/2508630/orientation-in-a-uiview-added-to-a-uiwindow