MFMessageComposeViewController *controller = [[MFMessageComposeViewController alloc] init];
if([MFMessageComposeViewController canSendText]) {
controller.body = [NSString stringWithFormat:@"%@ \n%@", LOCALIZED(@"Angkor Auto"), car.name];
controller.body = @"";
NSString* trim = [MGUtilities removeDelimetersInPhoneNo:_contactNo];
if(_smsNo != nil)
trim = [MGUtilities removeDelimetersInPhoneNo:_contactNo];
controller.recipients = @[ trim, ];
controller.messageComposeDelegate = self;
controller.view.backgroundColor = BG_VIEW_COLOR;
}
[self.navigationController presentViewController:controller animated:nil completion:^{
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
}];
}
Asked
Active
Viewed 47 times
0

chiwangc
- 3,566
- 16
- 26
- 32
-
1Why is it not working ? – Oun Ouk Jin Hong Apr 22 '15 at 02:05
-
1Welcome to Stack Overflow! Please [edit] your question to include what, specifically, isn't working, and how. Thanks for improving the question's reference value and making it more answerable! – Nathan Tuggy Apr 22 '15 at 02:09