objective c - Message controller iOS -
i new in ios programming, know old question confused here message controller. want make application in want send simple messages. if set multiple recipients can of 1 can view recipients? if so,then how can make private message 1 recipient can't view other recipients?
here code composing message more recipients
- (void)showsms:(nsstring*)file { if(![mfmessagecomposeviewcontroller cansendtext]) { uialertview *warningalert = [[uialertview alloc] initwithtitle:@"error" message:@"your device doesn't support sms!" delegate:nil cancelbuttontitle:@"ok" otherbuttontitles:nil]; [warningalert show]; return; } nsarray *recipents = @[@"12345678", @"72345524"]; nsstring *message = [nsstring stringwithformat:@"just sent %@ file email. please check!", file]; mfmessagecomposeviewcontroller *messagecontroller = [[mfmessagecomposeviewcontroller alloc] init]; messagecontroller.messagecomposedelegate = self; [messagecontroller setrecipients:recipents]; [messagecontroller setbody:message]; [self presentviewcontroller:messagecontroller animated:yes completion:nil]; }
there's setting in settings -> messages disables group messaging, , recipients receive messages separately. other that, can't mfmessagecomposeviewcontroller
because there's no bcc option. send messages 1 @ time though
Comments
Post a Comment