//打开地图
NSString*addressText = @" "; //@"1Infinite Loop, Cupertino, CA 95014";
addressText =[addressText stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding];
NSString*urlText = [NSString stringWithFormat:@"http://maps.google.com/maps?q=%@",addressText];
NSLog(@"urlText=============== %@", urlText);
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlText]];
//打开邮件 收件人:devprograms@apple.com
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"mailto://devprograms@apple.com"]];
//打开短信 收件人:138
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"sms://138"]];
//打开拨号 直接拨打给:8004664411
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8004664411"]];
//打开浏览器 访问网址 http://itunesconnect.apple.com
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunesconnect.apple.com"]];
//打开设置
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];