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

相關文章
相關標籤/搜索