您的位置:首页 > 其它

手机系统版本跳转

2015-08-11 15:12 246 查看
- (NSString*) machineName{
struct utsname systemInfo;
uname(&systemInfo;);
NSString *result = [NSString stringWithCString:systemInfo.machine
encoding:NSUTF8StringEncoding];
return result;
}

//成功

NSString*phoneVersion = [[UIDevicecurrentDevice]systemVersion];
NSLog(@"手机系统版本:%@",phoneVersion);

跳转链接
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://blog.csdn.net/joycecsdn"]];
跳转呼叫
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8008808888"]];

跳转设置
-(IBAction)btnSetting:(id)sender{
NSURL*url=[NSURL URLWithString:@"prefs:root=LOCATION_SERVICES"];
[[UIApplication sharedApplication] openURL:url];
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: