Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
UIDevice: Difference between revisions - iPhone Development Wiki

UIDevice: Difference between revisions

From iPhone Development Wiki
(Created page with ''''UIDevice''' is a singleton class that provides access to some properties of the current device. == As a client to liblockdown == Many important properties can be accessed vi…')
 
Line 2: Line 2:


== As a client to liblockdown ==
== As a client to liblockdown ==
Many important properties can be accessed via {{dyliblink|liblockdown}}. This can be used to bypass higher-level spoofing hacks.
Many important properties can be accessed via {{dyliblink|liblockdown}}. This can be used to bypass higher-level spoofing hacks. One has to use the liblockdown functions in MobileSubstrate initializers because UIKit was not ready at that time.
 
{| class="wikitable"
{| class="wikitable"
|-
|-

Revision as of 07:14, 21 April 2010

UIDevice is a singleton class that provides access to some properties of the current device.

As a client to liblockdown

Many important properties can be accessed via liblockdown. This can be used to bypass higher-level spoofing hacks. One has to use the liblockdown functions in MobileSubstrate initializers because UIKit was not ready at that time.

UIDevice property liblockdown key
model kLockdownDeviceClassKey
localizedModel kLockdownDeviceClassKey
uniqueIdentifier kLockdownUniqueDeviceIDKey
buildVersion kLockdownBuildVersionKey
systemVersion kLockdownProductVersionKey
name kLockdownDeviceNameKey

iPad mode (Wild cat)

Signature @property(assign,nonatomic) BOOL isWildcat;
Available in 3.2 —

iPad has a drastically different user interface than iPhone/iPod Touch, but all three share the same OS. In UIKit and SpringBoard, this property is heavily used to determine which behavior should be used.

Wild cat is the codename of iPad.

References