[英]Why my Storyboard can't initiate on simulator?
I built a storyboard like this: 我构建了一个这样的故事板:
I didn't write a single line of code, and my settings seem to be correct. 我没有写一行代码,我的设置似乎是正确的。
So why do I always get a blank screen on simulator? 那么为什么我总是在模拟器上出现空白屏幕?
Please help me. 请帮我。
Is your app delegate explicitly creating *window
? 您的应用是否委托明确创建
*window
? If so, delete that line of code. 如果是这样,请删除该行代码。
// self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
But keep the property definition: 但保留属性定义:
@property (strong, nonatomic) UIWindow *window; // keep this
@oratis have you checked in AppDelegate @synthesize window = _window; @oratis你在AppDelegate签了@synthesize window = _window; it might be the reason for unrecognized selector
这可能是无法识别的选择器的原因
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.