iOS 设备信息获取】的更多相关文章

參考:http://blog.csdn.net/decajes/article/details/41807977參考:http://zengrong.net/post/2152.htm1. 获取设备的信息     UIDevice *device = [[UIDevice alloc] init];     NSString *name = device.name;     NSString *model = device.model; // 设备类型.比方是苹果还是itouch     NSS…
简介 libimobiledevice又称libiphone,是一个开源包,可以让Linux支持连接iPhone/iPod Touch等iOS设备.由于苹果官方并不支持Linux系统,但是Linux上的高手绝对不能忍受因为要连接iOS设备就换用操作系统这个事儿.因此就有人逆向出iOS设备与Windows/Mac Host接口的通讯协议,最终成就了横跨三大桌面平台的非官方版本USB接口library.经常用Linux系统的人一定对libimobiledevice不陌生,但是许多Windows和Ma…
来源:si1ence 链接:http://www.jianshu.com/p/b23016bb97af 为了统计用户信息.下发广告,服务器端往往需要手机用户设备及app的各种信息,下面讲述一下各种信息的获取方式: GitHub:https://github.com/PengfeiWang666/iOS-getClientInfo 一行代码就搞定的统一来! // 这个方法后面会列出来 NSString *deviceName = [self getDeviceName]; NSLog(@"设备型号…
Author:si1ence Link:http://www.jianshu.com/p/b23016bb97af 为了统计用户信息.下发广告,服务器端往往需要手机用户设备及app的各种信息,下面讲述一下各种信息的获取方式: 点击下载以上展示效果的GitHub源码 一行代码就搞定的统一来! // 这个方法后面会列出来 NSString *deviceName = [self getDeviceName]; NSLog(@"设备型号-->%@", deviceName); NSSt…
网络(运营商信息,网络类型) public static class NetworkInfo { /// <summary> /// 网络是否可用 /// </summary> public static bool IsNetworkAvailable { get { ConnectionProfile profile = NetworkInformation.GetInternetConnectionProfile(); return (profile?.GetNetworkCo…
- (void)viewDidLoad { [super viewDidLoad]; // 操作系统 NSString * osName =[[UIDevice currentDevice]systemName]; // 操作系统版本 NSString * systemVersion =[[UIDevice currentDevice]systemVersion]; NSLog(@"os =%@ ",osName); NSLog(@"version =%@",sys…
参考资料: [1] 博客园,iOS屏幕尺寸和分辨率了解 [2] 张兴业,获取手机信息(UIDevice.NSBundle.NSLocale), CSDN…
1.获取电池电量(一般用百分数表示,大家自行处理就好) 1 2 3 4 -(CGFloat)getBatteryQuantity {         return [[UIDevice currentDevice] batteryLevel]; } 2.获取电池状态(UIDeviceBatteryState为枚举类型) 1 2 3 4 -(UIDeviceBatteryState)getBatteryStauts {         return [UIDevice currentDevice]…
1.获取本地IP(有可能是 内网IP,192.168.xxx.xxx) /** * 获取本地IP * * @return */ public static String getLocalIpAddress() { try { Enumeration<networkinterface> en = NetworkInterface .getNetworkInterfaces(); while (en.hasMoreElements()) { NetworkInterface ni = en.nex…
let infoDictionary = NSBundle.mainBundle().infoDictionary let appDisplayName: AnyObject? = infoDictionary!["CFBundleDisplayName"] let majorVersion : AnyObject? = infoDictionary! ["CFBundleShortVersionString"] //主程序版本号 let minorVersion…