私は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>.
おかげで、 S.
ありがとうございました。今私は問題が何であるか知っています – sek