iOSアプリ開発のメモ置き場

ささたつがiOSアプリ開発で知ったObjective-Cのtipsなどを書いていく所存

Storyboard で作成した ViewController を呼び出す

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
ModalViewController *modalViewController = [storyboard instantiateViewControllerWithIdentifier:@"ModalViewController"];
[self presentViewController:modalViewController animated:YES completion:nil];


そうすると ModalViewController の initWithCoder: が呼ばれるわけか。フムフム。