How to detect iOS device programmatically

后端 未结 2 1640
孤街浪徒
孤街浪徒 2020-12-11 23:16

I need to know which iOS device is currently running app (saying more exactly I need to know is device armv6 or armv7). UIUserInterfaceIdiomPad() could not check is device a

2条回答
  •  无人及你
    2020-12-11 23:26

    If you really want to know (at run time) if you are running on arm6 or arm7, you can use "NXGetArchInfoFromCPUType" (much more detail is available in the accepted answer to this question).

    Otherwise you can use platformType or platformString, as our incredibly quick answering friend Omar suggested (and +1 to him!).

提交回复
热议问题