views:

50

answers:

2

Hi! Anyone can tell me that how can I get the total life age (usage time), Modal Number, software version of the iPhone using obj c. Also how can we check that iphone is jailbroken or not using objective C.

Thanks MAS

A: 

Not sure on this but you could give SystemConfiguration.framework (if it is even present on the iphone) a try.

Antwan van Houdt
A: 

I don't know about the usage time, but you can get the device type and OS version from the UIDevice class:

NSLog(@"Device type: %@\niOS version: %@\n",
    [UIDevice currentDevice].model,
    [UIDevice currentDevice].systemVersion);
// Might output this:
Device type: iPhone
iOS version: 2.0
Adam Rosenfield