ios - 如何获取 iOS 设备硬件规范?

标签 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/

上一篇:IOS - 使用自动布局和 drawRect

下一篇:ios - 当没有文本时,textView.text 属性不为 nil

相关文章:

ios - 如何匹配两个语音文件并返回是否是同一个词?

iOS:UISearchBar 中的 UIActivityIndi​​cator

iphone - 如何在以编程方式创建的 UILabel 上添加 padding-left?

ios - 如何更改按钮的背景颜色?

iphone - 浏览器大小 html css

java - 由于 xcodebuild 失败 : xcodebuild failed with code 65,无法启动 WebDriverAgent

ios - JSON 处理错误 : Output not fetched correctly

ios - 如何在 ios 7 中删除键盘的顶部栏

ios - "Parse Issue Expected ' ] '"

ios - Dropbox iOS API - 简单问题/DBRestClient 问题