开发者

Accessing iPhone info from SDK

I need to fetch device info from iPhone. I went through this link and find out the way to fetch the device platform.

Determine device (iPhone, iPod Touch) with iPhone SDK

In UIDeviceHardware it has included sys/types.h and sys/sysctl.h and it has used some methods to access that. So I开发者_JAVA百科 want to know whether this is accepted in the app store as this uses sys imports and sysctlbyname methods. I want to make sure this approach is correct.

Thank you.


You should look into UIDevice, since UIDeviceHardware seems to be a private API (no info in the documentation).

Generally it's recommended not to check for hardware models (e.g. iPhone 3GS / 4G / iPad) but for hardware features that you require (compass, camera, etc.)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜