每次我点击一个按钮改变视图时,ios模拟器 5.1 (272.21)就会关闭。为什么?
- (IBAction)SwitchView:(id)sender {
SecondView *second = [[SecondView alloc] initWithNibName:nil bundle:nil];
[self presentViewController:second animated:YES completion:NULL];
}
这是ViewController.m中的按钮代码。