美文网首页
使用self.window.rootViewController

使用self.window.rootViewController

作者: JobsTorvalds | 来源:发表于2016-10-12 18:04 被阅读0次

确保AppDelegate中的[self.window makeKeyAndVisible] 这个方法只出现一次。

// 让UIWindow显示出来(让窗口成为主窗口 并且显示出来)

// 一个应用程序只能有一个主窗口

[self.window makeKeyAndVisible];//就是创建窗口的方法 将创建出来的控制器在窗口上展示出来了

写在方法中就是不停的创建窗体

相关文章

网友评论

      本文标题:使用self.window.rootViewController

      本文链接:https://www.haomeiwen.com/subject/xrbiyttx.html