0
입력 한 암호가 올바른 경우에만보기 컨트롤러를 입력 할 수 있기를 원했습니다. 는 다음 코드 사용 -보기 컨트롤러를 전환하는 중 Xcode에 오류가 있습니다.
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];
}
을하지만 난 입력 할 때, 엑스 코드는 나에게 sigbrt 오류를 준, 그래서 난 모든 예외 중단 점을 추가하지만 main.m로 전환하고 '스레드 1 말한다 : 브레이크 포인트 1.1 '.
은 읽어 주셔서 감사하고 당신이 답을 알고있는 경우
입력 정수 variable.the 코드가있는 경우 입력하지만 스토리 보드를 제대로 전환하지 않는 것입니다 답변 바랍니다. – Programmer1246