5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Xcode6でStoryboardを使わずにObjective-CでiOSアプリを開発する #1

Posted at

プロジェクトを作る

適当に作ったら、Main Interfaceを空欄にする(もともと"Main"が入ってる)
スクリーンショット 2015-01-12 20.00.11.png

コードを変える

作成されたAppDelegete.mのapplicationメソッドを以下のように変更する

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

以上で環境は整う。実行すると、iOS Simulatorが立ち上がって真っ白な画面が出てくるはず。

5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?