Xcode6无法用xib得问题解决方法

时间:2023-03-09 06:06:59
Xcode6无法用xib得问题解决方法

1.创建一个新工程,选择singleView application

2.将storyboard和launchscreen删除,选择moveToTrash

3.删除info.plist文件中Main storyboard file base name和Launch screen interface file base name两个属性

4.在appdelegate的入口类中添加这样一段代码

self.window=[[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    [self.window makeKeyAndVisible];