■ 화면전환
- 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];
'IPhone' 카테고리의 다른 글
UIWebView 를 빈화면으로 만들기 (0) | 2013.01.08 |
---|---|
Universal Static Library 만들기 (0) | 2013.01.07 |
View Changed (0) | 2012.11.14 |
UITextField 선택하기 (1) | 2012.11.14 |
키패드 사용시 해당 UITextField 가 스크롤링 되어 위로 올라가도록 한다 (0) | 2012.11.14 |