創(chuàng)建一個新工程
刪除MainStoryBord LauchScreen.storyboard ViewController.m,ViewController.h?
Targets—General將Launch Screan File設置為空
Targets—General—Deployment info 將MainIterface 設置為空
Assets.xcassets中添加一個LauchImage?
將Launch Images Source 設置為Assets.xcassets中的LauchImage
代碼:
self.window = [[UIWindow alloc]initWithFrame:[[UIScreen mainScreen] bounds]]
self.window.rootViewController = xxx;
self.window.backgroundColor = [UIColor whiteColor];
?[self.window makeKeyAndVisible];