Posted at

Xcode6で、StoryBoardなしのEmptyApplicationテンプレートを使用する方法

More than 3 years have passed since last update.


Xcode6で、StoryBoardなしで使用する設定


AppDelegate.mに書きを記述


#import "ViewController.h"

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
ViewController *viewController = [[ViewController alloc] init];
self.window.rootViewController = viewController;
[self.window makeKeyAndVisible];
return YES;
}