首页 > 代码库 > IOS cocos2d学习笔记

IOS cocos2d学习笔记

更新到 xcode6之后,发现没有原来的  empty  application了  习惯又要被改变了。

下面是解决的方法:

1.新建一个single view application
2.打开 Info.plist,删除里面的  Launch screen interface file....以及 Main storyboard file base name...
3.删除Main.storyboard以及LaunchScreen.xib
4.在AppDelegate.m修改如下(其中MainViewController是自己新建的 viewController)

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds] ];
    self.window.rootViewController = [[MainViewController alloc]init];
    [self.window makeKeyAndVisible];    
    return YES;
}
这样  就全部OK了
本文转自http://www.999dh.net/home.php?mod=space&uid=1&do=blog&quickforward=1&id=420  转载请注明! 

IOS cocos2d学习笔记