我的 iOS 应用的 Storyboard 中有多个 UIViewController。我想从不同的 UIViewController 打开其中一个 UIViewControllers(在故事板中)。
我已经尝试了下面的代码,但即使我在 iOS 5 之前使用它并且它运行良好,它也无法正常工作。
- (IBAction)addNotes:(id)sender {
NotesViewController *notesView = [[NotesViewController alloc] initWithNibName:@"NotesViewController" bundle:nil];
[self presentModalViewController:notesView animated:YES];
}
如何使用 iOS 5 Storyboards 执行此操作?