IT虾米网

iOS获取当前设备信息

lxf 2018年06月23日 手机开发 1152 0
   //获取iOS设备的各种信息 
    
    NSString *device_token = [[[UIDevice currentDevice] identifierForVendor] UUIDString]; 
    NSString *device_os = [[UIDevice currentDevice] systemVersion]; 
    //包含28个Key/Value 
    NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary]; 
    NSString *currentVersion = [infoDic objectForKey:@"CFBundleShortVersionString"];


评论关闭
IT虾米网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!