LoginSignup
0
1

More than 5 years have passed since last update.

StoryBoardを使わないiOS開発開始時のメモ

Posted at

新規Project

Empty Applicationを選択

TopController作成

最初に表示するためのControllerを作成
TopContoller.h / TopController.mとします

ApplicationDelegeteの修正

TopControllerを起動時に表示するように修正

ApplicationDelegate.h
#import "TopController.h"

@property (strong, nonatomic) TopController *topController;
ApplicationDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    // Override point for customization after application launch.
    //self.window.backgroundColor = [UIColor whiteColor];

    _psTopViewController = [[PSTopViewController alloc]init];
    self.window.rootViewController = _psTopViewController;



    [self.window makeKeyAndVisible];
    return YES;
}

こんなかんじに修正

0
1
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
0
1