SMS 응용 프로그램을 구현하려고합니다. 그 때 내 SMS를 보내려고하면 [self.navigationController presentModalViewController : picker animated : YES];에서 예외가 발생했습니다. 나는 이것에 아주 새롭다. 너희들이 나를 도와 줄 수 있니?. 내 코드는 다음과 같습니다. 다음문제 iPhone SDK의 MFMessageComposerViewController
MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
picker.delegate = self;
picker.recipients = [NSArray arrayWithObject:@"123456789"]; // your recipient number or self for testing
picker.body = @"test from OS4";
[self.navigationController presentModalViewController:picker animated:YES];
[picker release];
내 로그 메시지 미리
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present a nil modal view controller on target <UINavigationController: 0x5b2c120>.
감사 메시지는 picker
수단 S.
감사합니다. 이제는 문제가 무엇인지 압니다. – sek