我assining問題NSMutableArray
稱爲 「arrmIndexArray」 到MFMessageComposeViewController像財產收件人:messageCompose在收件人
contoller.recipients=arrmIndexArray
但它的崩潰。
if([MFMessageComposeViewController canSendText]){
NSLog(@"contact page MFMessageComposeViewController canSendText");
controller.messageComposeDelegate = self
NSLog(@"get sms etxt is %@",[msmscheck getsmsText]);
controller.body =[msmscheck getsmsText];
NSLog(@"agter the getsms text");
NSLog(@"arr-- from server-->%@",arrmIndexArray);
//Crashes on this line:
controller.recipients = arrmIndexArray;
NSLog(@"recipent---%@",controller.recipients);
NSString *messag=[NSString stringWithFormat:@"message sent to %d people",[arrmIndexArray count]];
controller.editing = NO;
summary=messag;
NSLog(@"before--");
[self presentModalViewController:controller animated:YES];
NSLog(@"after-");
[controller release];
}
給EXC_BAD_ACCESS
這是什麼行'arrayWithObjects:@ 「8147042736」,零]'? – EmptyStack
你怎麼能夠編譯這段代碼?它甚至不會編譯。 –
thais被評論line.now刪除 – user1210691