开发者

How to get the usage time (age of), Modal Number, software version of the iPhone using obj c

开发者 https://www.devze.com 2022-12-20 23:01 出处:网络
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.

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 c开发者_Python百科heck that iphone is jailbroken or not using objective C.

Thanks MAS


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


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
0

精彩评论

暂无评论...
验证码 换一张
取 消