可以使用UIApplication类的openURL:方法从一个应用程序来启动另一个应用程序。
启动Mail应用程序:
NSURL *url = [NSURL URLWithString:@"mailto:steve@apple.com subject= test"];
[[UIApplication sharedApplication] openURL:url];
启动SMS应用程序:
NSURL *url = [NSURL URLWithString: -"sms:555-1234"];
[[UIApplication sharedApplication] -penURL:url];
拨打电话号码:
NSURL *url=[NSURL URLWithString:@"tel://555-1234"];
[[UIApplication sharedApplication] openURL:url];
启动Maps应用程序来查找:
NSURL *url = [NSURL URLWithString:@"http://maps.google.com/maps?q=pizza"];
[[UIApplication sharedApplication] openURL:url];