Sending SMS using CTMessageCenter (iOS 7)
问题 I am trying to send sms programmatically using private API. My phone is not jailbroken. BOOL success = [[CTMessageCenter sharedMessageCenter] sendSMSWithText:@"test 1234..." serviceCenter:nil toAddress:@"0777888888"]; if(success){ NSLog(@"Message SENT"); }else{ NSLog(@"Message not SENT"); } This code always prints "Message not SENT". Can anyone help me ? 回答1: I guess, you have to write the telephone number in E.123 international notation. So add plus sign and country code. For a phone number