내가 물어보기로 결정하기 전에 이것에 관한 많은 문서를 읽었습니다. 내 응용 프로그램에 navigationController가 있습니다. 사용자가 내 앱에 처음으로 들어가면ModalViewControllerAnimated를 dismiss하는 방법 : 예
RegViewController *opr = [[RegViewController alloc] init];
self.regController = opr;
[self.navigationController presentModalViewController:self.regController animated:NO];
[opr release];
그리고 잘 작동합니다. 내가 RegViewController에서 확인 버튼을 클릭하면하지만이 방법
-(IBAction)btn_regPressed:(id)sender
{
NSLog(@"start to dissmis modal");
[self.navigationController dismissModalViewControllerAnimated:YES];
//[self.navigationController.parentViewController dismissModalViewControllerAnimated:YES];
}
에게 전화하지만이 코드는 누군가가 thios 문제를 제발 도와 드릴까요 dismissModalViewController 싶지 않습니다. 당신의 RegViewController에 감사
감사합니다 !!!! 그것은 작동합니다! 나는 self.navigationController하지만 자기 작품을해야한다는 것을 읽었습니다! 다시 감사합니다 –