iphone - 如何在iPhone sdk中以编程方式获取设备名称?

标签 iphone ip-address device mac-address

我获取了设备的 Mac 和 IP 地址。但是,不要获取设备名称。

知道如何获取更多信息(如果可能的话),例如设备的“网络实用程序”?

最佳答案

NSLog(@"uniqueIdentifier: %@", [[UIDevice currentDevice] uniqueIdentifier]);
NSLog(@"name: %@", [[UIDevice currentDevice] name]);
NSLog(@"systemName: %@", [[UIDevice currentDevice] systemName]);
NSLog(@"systemVersion: %@", [[UIDevice currentDevice] systemVersion]);
NSLog(@"model: %@", [[UIDevice currentDevice] model]);
NSLog(@"localizedModel: %@", [[UIDevice currentDevice] localizedModel]);

关于iphone - 如何在iPhone sdk中以编程方式获取设备名称?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11167677/

相关文章:

c - in_addr_t 变量作为连接参数

python - python 如何以不同的时间间隔递增?

java - ServletRequest.getRemoteAddr()返回的IP格式是什么

linux-kernel - 没有 -o 循环的安装

ios - 无论设备如何,以编程方式从屏幕底部对齐标签 - iOS

iphone - AVMutableVideoComposition 中的淡入淡出

iphone https 查询

ios - 有没有一种方法可以使用 Delphi XE5/iOS7 在 iOS 键盘上切换 Shift 键

iPhone Cocos2D - 在哪里加载代码?

linux - 用于 usb 设备/dev/sdb 的 opendir