<分区>
这个问题似乎不是关于 a specific programming problem, a software algorithm, or software tools primarily used by programmers 的.如果您认为这个问题是关于 another Stack Exchange site 的主题,您可以发表评论,说明问题可能在哪里得到解答。
关闭 8 年前。
标签 ios objective-c iphone ipad
<分区>
这个问题似乎不是关于 a specific programming problem, a software algorithm, or software tools primarily used by programmers 的.如果您认为这个问题是关于 another Stack Exchange site 的主题,您可以发表评论,说明问题可能在哪里得到解答。
关闭 8 年前。
从代码中获取有关 iOS 设备 CPU、GPU 和内存的信息的最佳方式是什么? 我想知道它有多少个内核,cpu 有多少 GHz 等等。 谢谢。
最佳答案
您不会通过代码获取设备 CPU、GPU 和内存信息。你读了UIDevice developer reference并使用它获取其他信息:
UIDevice *device = [UIDevice currentDevice];
NSString *name = [device name];
NSString *sysname = [device systemName];
NSString *model = [device model];
可能还有更棘手的规范,然后你引用维基百科iPhone文章以查找每个型号的硬件规范。
关于ios - 如何获取 iOS 设备硬件规范?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25058185/