Как программно получить полную информацию об устройстве ios

Мне нужно получить доступ ко всем сведениям об устройстве в целом-> настройки-> о моем устройстве IOS, я могу получить подробную информацию, кроме IMEI устройства и прошивки модема с серийным номером, есть любой способ получить полный пакет настроек в моем приложении или вышеупомянутые детали


person Anshad Rasheed    schedule 30.06.2015    source источник
comment
Apple не позволяет вам получать какую-либо информацию об устройстве, такую ​​как IMEI, UDID, Mac-адрес, серийный номер и т. д.   -  person soumya    schedule 30.06.2015
comment
см. обновленный ответ, чтобы получить номер IMEI   -  person Kirit Modi    schedule 22.09.2015


Ответы (2)


Добавляем Message.framework в свой проект и получаем IMEI номер,

NetworkController *ntc = [NetworkController sharedInstance];
NSString *imeistring = [ntc IMEI];

Apple разрешает некоторые детали устройства, не дает 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.
}

пример : [[UIDevice currentDevice] name];

person Kirit Modi    schedule 30.06.2015
comment
Спасибо за вашу помощь. Дайте мне знать, как получить номер устройства imei? - person Anshad Rasheed; 22.09.2015

К сожалению, Apple не предоставляет такого API для программного получения IMEI или серийного номера устройства iOS. Вот тема дискуссионного форума Apple по этому вопросу.

person Abhinav    schedule 22.09.2015