iOS8新建一个新的空白工程--妖妖
1.新建一个工程,然后新建一个single view application
2.在工程的资源目录中找到Supporting Files->Info.plist 文件,删除里面的Launch screen interface file base name 和 Main storyboard file base name
3.删除 Main.storyboard 和 LaunchScreen.xib
4.修改AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc]initWithFrame:[[UIScreen mainScreen]bounds]];
ViewController *vc = [[ViewController alloc]init];
[self.window setRootViewController:vc];
return YES;
}
5.如果运行程序之后,发现程序界面的大小不对,那么添加图片Default-568h@2x.png