How do you detect iPhone v. iPhone 3G using Obj C

前端 未结 4 1812
暖寄归人
暖寄归人 2021-01-15 05:31

There is a model property of the device, but it doesn\'t distinguish between iPhone and iPhone 3G. Is there a better way?

4条回答
  •  忘掉有多难
    2021-01-15 06:06

    actually they can use the code just to detect a model that doesn't and assume all other models have it

    that way they don't have to change the code in the future unless they come out with an iPhone that doesn't have a GPS again...

    also--- in response to Oregon Ghost--- there are many features (bluetooth is another I can think of off the top of my head) that the SDK provides no way of detecting....

提交回复
热议问题