Breaking News
Home / iOS / iOS Snippets / How can I get iPhone Device information via API?

How can I get iPhone Device information via API?

Solution

The device information attributes is available in iOS using the UIDevice class

NSString    *name;    // e.g. “mvohra iPhone”

NSString    *model;             // e.g. @”iPhone”, @”iPod Touch”, @”iPad”

NSString    *localizedModel;    // localized version of model

NSString    *systemName;        // e.g. @”iPhone OS”

NSString    *systemVersion;     // e.g. @”3.0″,@”4.2″

UIDeviceOrientation orientation;       // return current device portrait/landscape

NSString    *uniqueIdentifier;  // a 40 char unique strig to each device[pb_builder]

Check Also

EKCalendar – That account does not allow calendars to be added or removed

Usecase When I am trying to create a new Calendar programmatically using the EventKit API …

Leave a Reply