1、将Main.storyboard删除
2、将"项目名-Info.plist"文件的main storyboard file base name删除(选中,按delete键)
3、在AppDelegate的
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions方法中写入以下代码(在arc上这样写,mrc上加上aoturelase)
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
_window.backgroundColor = [UIColor whiteColor];
[_window makeKeyAndVisible];