iPhone detecting processor model / NEON support

前端 未结 4 1961
栀梦
栀梦 2021-02-03 11:33

I\'m looking for a way to differentiate at runtime between devices equipped with the new ARM processor (such as iPhone 3GS and some iPods 3G) and devices equipped with the old A

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-03 12:06

    I know this is crummy, but the best that comes into my mind is detect if the device supports video recording. Currently only the ARM7 based iPhone and iPod devices support it, hence its a legit way, I guess.

    To do so, use UIImagePickerController's availableMediaTypesForSourceType in conjunction with isSourceTypeAvailable on kUTTypeMovie.

提交回复
热议问题