Device

iOS Developer Tips - Visitor Stats:
276,807 Pageviews and 214,652 visitors in the past 30 days.

For advertising information and rates, click here.

Determine MAC Address

The MAC (Media Access Control) address is an identifier that is associated with a network adapter and uniquely identifies a device on a network. A MAC address consists of 12 hexadecimal numbers, typically formatted as follows XX:XX:XX:YY:YY:YY The XX values in a MAC address identify the manufacturer, the YY values are the serial number assigned [...]

Device

Using the Proximity Sensor

The proximity sensor on the iPhone detects when the device is close to your face (or otherwise covered). There aren’t many times when using the sensor is of value, however, the Google Voice Search application has put this to good use as a means to trigger voice recording for a search request. If you have [...]

Device

Query the Battery State and Level of Charge

There are times when checking in on the battery status can be a good idea. The code that follows shows how to monitor battery states and levels (percent of charge) using methods in the UIDevice class. Enable Battery Monitor To query information regarding the iPhone battery status, you start by enabling battery monitoring through a [...]

Device

Get iPhone Device Name, Unique Device Identifier (UDID), OS and Model

The iPhone SDK includes a singleton of class type UIDevice that you can use to retrieve device specific information (this works equally as well with the simulator). Available Properties in UIDevice uniqueIdentifier – identifier guaranteed to be unique for every device name – arbitrary name found in General > About setting on device systemName – [...]

Device

Determine Device Type – 3G or 3GS / iPod First or Second Generation

Using the UIDevice class, you can figure out if your application is running on a iPod or an iPhone. To get this information, access the property named model which will return an NSString of iPhone or iPod touch. However, there may be times when you need more specifics, for example is the iPhone the latest [...]

Device

Is Application Running on iPhone or iPod touch

If you ever need to know whether your application is running on an iPod touch or an iPhone, the answer is as close as this one line of code: NSString *deviceType = [UIDevice currentDevice].model; To get the model of the device as a localized string:

Device
All Content Copyright © 2008-2012 • iOS Developer Tips, All Rights Reserved.