我获取了设备的 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/