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];
时间: 2024-10-27 13:46:48