도청되었을 때 패스 코드 변경보기 컨트롤러를 표시하는 셀이 있습니다.dismissViewControllerAnimated가 iOS 7에서 작동하지 않습니까?
else if (indexPath.row == 2) {
//Change passcode
NSString *passcode = [[NSUserDefaults standardUserDefaults] stringForKey:@"passcode"];
PAPasscodeViewController *passcodeViewController = [[PAPasscodeViewController alloc] initForAction:PasscodeActionChange];
passcodeViewController.delegate = self;
passcodeViewController.passcode = passcode;
passcodeViewController.simple = YES;
[self presentViewController:passcodeViewController animated:YES completion:nil];
break;
}
히트 취소 할 때 암호 변경 뷰 컨트롤러를 기각 대리인 콜백 메소드 :
- (void)PAPasscodeViewControllerDidCancel:(PAPasscodeViewController *)controller {
[self dismissViewControllerAnimated:YES completion:nil];
// [self.presentingViewController dismissViewControllerAnimated:YES completion:nil];
// [self.navigationController popViewControllerAnimated:YES];
}
는 그러나 암호 변경 뷰 컨트롤러를 해제하지 않습니다 엑스 코드 디버그가 안타에도 불구하고 취소 버튼을 쳤을 때 암호. 나는 시도했다 [self.presentingViewController dismissViewControllerAnimated : 예 완료 : 없음]; 그것도 작동하지 않았다. presentingViewController 속성은 nil입니다.
iOS 6에서 완벽하게 작동했습니다. 누구든지 전에이 문제에 부딪 혔습니까? 감사합니다
무엇이 self.presentingViewController입니까? –