0

ボタンを押してビューを切り替えるたびに、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 のボタンのコードです。

4

1 に答える 1