在写app的时候可能会有一个广告链接链接到appStore等,有时候就可以使用UIApplication的openURL方法,使用如下:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:appString]];
appString就是你想要链接的广告地址
另外要是程序需要,还可以调用系统的链接:
Map http://maps.google.com/maps?q=Shanghai
Email mailto://[email protected]
Tel tel://10086
Msg sms://10086