入力したパスワードが正しい場合にのみView Controllerに入ることができるようにしたかったのです。私は次のコードを使用しました -
if(([input isEqual:@"12"]))
{
NSLog(@"change view controller");
NSString * storyboardName = @"Main";
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle: nil];
UIViewController * vc = [storyboard instantiateViewControllerWithIdentifier:@"secondViewController"];
[self presentViewController:vc animated:YES completion:nil];
}
しかし、入力すると、Xcode から sigbrt エラーが返されたので、すべての例外ブレークポイントを追加しましたが、main.m に移動し、「スレッド 1: ブレーク ポイント 1.1」と表示されます。
読んでくれてありがとう、答えを知っているなら答えてください