删除storyboard
0.工程中的storyboard直接删除掉
1.TAGETS/General/Deployment Info /Main Interface选项
删除Main
3.- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
添加
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootVC = [[UIViewController alloc] init];
self.window.rootViewController = rootVC;
[self.window makeKeyAndVisible];
添加podfile,并初始化pod工作区
添加pch文件
1.创建pch文件
2.工程配置
info.plist 打开网络权限
屏幕快照 2019-01-24 下午4.49.41.png
网友评论