如何以编程方式获取完整的ios设备详细信息

时间:2015-06-30 10:09:40

标签: ios objective-c imei uidevice

我需要访问所有设备详细信息 - > settings->关于我的IOS设备,我可以获取除设备IMEI和序列号调制解调器固件之外的详细信息,有任何方法可以获得完整的设置包在我的申请或上述细节

2 个答案:

答案 0 :(得分:2)

agree_tos = forms.BooleanField(label="I Agree TOS") 添加到您的项目并获取Message.framework号码,

IMEI

Apple允许设备的一些细节,不给IMEI,序列号。在NetworkController *ntc = [NetworkController sharedInstance]; NSString *imeistring = [ntc IMEI]; 班中提供详细信息。

UIDevice

示例:class UIDevice : NSObject { class func currentDevice() -> UIDevice var name: String { get } // e.g. "My iPhone" var model: String { get } // e.g. @"iPhone", @"iPod touch" var localizedModel: String { get } // localized version of model var systemName: String { get } // e.g. @"iOS" var systemVersion: String { get } // e.g. @"4.0" var orientation: UIDeviceOrientation { get } // return current device orientation. this will return UIDeviceOrientationUnknown unless device orientation notifications are being generated. @availability(iOS, introduced=6.0) var identifierForVendor: NSUUID! { get } // a UUID that may be used to uniquely identify the device, same across apps from a single vendor. var generatesDeviceOrientationNotifications: Bool { get } func beginGeneratingDeviceOrientationNotifications() // nestable func endGeneratingDeviceOrientationNotifications() @availability(iOS, introduced=3.0) var batteryMonitoringEnabled: Bool // default is NO @availability(iOS, introduced=3.0) var batteryState: UIDeviceBatteryState { get } // UIDeviceBatteryStateUnknown if monitoring disabled @availability(iOS, introduced=3.0) var batteryLevel: Float { get } // 0 .. 1.0. -1.0 if UIDeviceBatteryStateUnknown @availability(iOS, introduced=3.0) var proximityMonitoringEnabled: Bool // default is NO @availability(iOS, introduced=3.0) var proximityState: Bool { get } // always returns NO if no proximity detector @availability(iOS, introduced=4.0) var multitaskingSupported: Bool { get } @availability(iOS, introduced=3.2) var userInterfaceIdiom: UIUserInterfaceIdiom { get } @availability(iOS, introduced=4.2) func playInputClick() // Plays a click only if an enabling input view is on-screen and user has enabled input clicks. }

答案 1 :(得分:0)

不幸的是,Apple没有公开这样的API来以编程方式获取iOS设备的IMEI或序列号。这是一个Apple Discussion Forum Thread