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)")
新闻名称:ios设备应用。UIDevice
文章来源:http://scjbc.cn/article/jsicoi.html