Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们可以像中所示那样检索 iDevice 模型吗
设置->常规->关于->型号 = MD662F ?
抱歉不行。UIDevice有一个“模型”属性,但只会返回@“iPhone”和@“iPod touch”等。
UIDevice
UIDevice *currentDevice = [UIDevice currentDevice]; NSString *model = [currentDevice model]; NSLog(@"Device Model: %@", model);