ios 设备应用。UIDevice
var device:UIDevice = UIDevice.currentDevice()
println("device.name:\(device.name)");
println("device.systemName:\(device.systemName)");
println("device.systemVersion:\(device.systemVersion)");
println("orientation.isLandscape:\(device.orientation.isLandscape)");
println("localizedModel:\(device.localizedModel)");
println("identifierForVendor:\(device.identifierForVendor)")
device.batteryMonitoringEnabled = true;
println("batteryState:\(device.batteryState)")
println("batteryLevel:\(device.batteryLevel)")
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。