Storyboardを使わずにコードだけでiOSアプリを書く時の最小限のコード

自分用のメモ

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

コメントを残す