IOS 设备

    UIDevice * device=[UIDevice currentDevice];spa

    NSLog(@"name:%@",device.name);3d

    NSLog(@"model:%@",device.model);orm

    NSLog(@"localizedModel:%@",device.localizedModel);it

    NSLog(@"systemName:%@",device.systemName);io

    NSLog(@"systemVersion:%@",device.systemVersion);model

    device.batteryMonitoringEnabled=YES;//显示电量im

    NSLog(@"当前电量电池容量:%1.f%%",device.batteryLevel * 100);margin

    NSLog(@"model:%@",device.model);top

    device.proximityMonitoringEnabled=YES;//接电话时屏幕关闭vi

相关文章
相关标签/搜索