Wednesday, 2 November 2011

How to get iPhone iPad System Properties

UIDevice Class is used to get the phone name, model, localizedModel, systemname, system version,orientation,battery level etc.

  [[UIDevice currentDevicename]
  [[UIDevice currentDevice] model]
  [[UIDevice currentDevicelocalizedModel]
  [[UIDevice currentDevicesystemName]
  [[UIDevice currentDevicesystemVersion]
  [[UIDevice currentDeviceorientation]
  [[UIDevice currentDevicebatteryLevel]


The main advantage is to check the battery level ;

float btlevel = [[UIDevice currentDevice] batteryLevel]; // range is from 0.0 to 1.0 UIDeviceBatteryState btstate = [UIDevice currentDevice] batteryStatus];


2 comments:

  1. Android application development association is vested with an enormous commitment to make the best applications for its clients that can offer them some help with overhauling their bit of the general business and access customers. In this way, we at Webnet, guarantee that we continue for you the applications that are exceedingly profitable in the business part and sensibly by assurance you move among your adversaries.

    ReplyDelete
  2. Thanks for sharing wonderful articl, This is excellent valuable & informative post.Keep on posting like this... App Development Company

    ReplyDelete