//spa
// ViewController.m.net
// UIDevice_設備3d
//orm
// Created by dc008 on 16/1/5.get
// Copyright © 2016年 lin. All rights reserved.it
//io
#import "ViewController.h"class
@interface ViewController ()import
@end model
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
UIDevice *mine = [UIDevice currentDevice];
NSLog(@"name:%@",mine.name);
NSLog(@"model:%@",mine.model);
NSLog(@"localizedModel:%@",mine.localizedModel);
NSLog(@"systemName:%@",mine.systemName);
NSLog(@"systemVersion:%@",mine.systemVersion);
mine.batteryMonitoringEnabled = YES;
NSLog(@"當前電池容量爲:%f%%",mine.batteryLevel *100);
//距離傳感器,靠近時屏幕黑屏
mine.proximityMonitoringEnabled = YES;
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end