iOS-Pro
iOS-Pro copied to clipboard
UIWindow的demo有错
错误描述
在github上下载UIWindow.zip解压后打开,运行程序在6splus的模拟器上,直接崩溃
解决方法
在PasswordInputWindow.m
中的initWithFrame:
中添加一行代码:
self.rootViewController = [UIViewController new]
仍然存在的疑虑
为什么这样就会不崩溃了,原理是什么,求作者解答.