I want to open the SMS inbox when I touched a button in my app. I can write message using MFMessageComposeViewController
, is there a counterpart for this?
You can use the sms URL scheme on the iPhone for this. Use the following code to open the Messages app:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://"]];
Apple documents the sms: URL scheme in some detail here.
As has already been pointed out, if you wish to do this entirely in-app, you will have to jailbreak your device. The messages database is not accessible through the app sandbox, as it used to be in earlier (pre-4.0) versions of iOS.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.