AppDelegate나 ViewController에서 임의의 ViewController을 띄우고 싶을 때 참고.
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil];
LoginViewController *myViewController = [storyboard instantiateViewControllerWithIdentifier:@"myViewController"];
[self.window makeKeyAndVisible];
[self.window.rootViewController presentViewController:myViewController animated:YES completion:NULL];
'Object-C > 팁' 카테고리의 다른 글
기기의 언어, 지역, 국가 설정 가져오기 (0) | 2019.02.18 |
---|---|
NSString 한글 길이를 잘 살피시라 (0) | 2017.04.07 |
AFNetworking (0) | 2016.02.26 |
뷰의 터치 이벤트 통과 시키기 (0) | 2015.12.16 |
UIView Rotating (0) | 2015.12.16 |