화면전환

- Storyboard 에서 화면 전환하기

  1. Storyboard의 UIViewController 에서 "Storyboard ID" 를 설정한다

  2. 소스상에서

SecondViewController *view = (SecondViewController*)

    [self.storyboard instantiateViewControllerWithIdentifier:@"storyboardID"];

[self presentViewController:view animated:YES completion:NULL];


- xib 에서 화면 전환하기

AppDelegate *_app = [[UIApplication sharedApplication]delegate];

SecondViewController *view = (SecondViewController*)

    [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];

[[_app window] addSubview:view.view];


+ Recent posts