Я пытаюсь отправить sms через устройство. Но он выходит из строя на линииСМС через Iphone, MFMessageComposeViewController
[self presentModalViewController:picker animated:YES];
КОД:
MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
picker.messageComposeDelegate = self;
picker.recipients = rec; // your recipient number or self for testing
picker.body = billInfo;
[self presentModalViewController:picker animated:YES];
[picker release];
Error Log:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present a nil modal view controller on target <billSummary: 0xfc7e780>.'
Вы проверить сборщика равна нулю или не с помощью контрольных точек. Согласно журналу ошибок, было указано, что сборщик был ноль, чтобы представить модальное представление, поэтому найдите, почему сборщик был равен – Sumanth