手机系统版本跳转
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];
}
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];
}
相关文章推荐
- 74.明明的随机数
- JQuery用on绑定的区别
- hdu 4070 福州赛区网络赛J 贪心 ***
- 将网卡中断分布到多个cpu上的方法
- FFT初解(转)
- C++/STL_中vector基本操作测试代码,vector.erase()使用方法
- 2015/8/11 网易游戏测试开发面试
- 【iOS代码】Slider侧滑菜单栏
- 取余与位运算
- Eclipse导入项目被认为不是Web项目无法部署到Tomcat服务器上的最简单解决办法
- Android IOS WebRTC 音视频开发总结(三七)-- 台湾help
- 2.6. Statistical Models, Supervised Learning and Function Approximation
- HDU1879:继续畅通工程【kruskal】
- jQuery动态添加html元素后,响应事件的问题记录
- 怎么把Win10镜像写入到U盘里?将U盘做成Win10启动盘教程图解
- ServletContextListener使用详解
- Matrix学习
- iOS-UITextView-文本输入视图的使用
- 171 Excel Sheet Column Number
- 数据结构(28)图的实现