尚方宝剑之说
我知道我回答这个问题太迟了。我不确定我的方法是否仍然适用于低iOS版本(<5.0):NSString *platform = [UIDevice currentDevice].model;NSLog(@"[UIDevice currentDevice].model: %@",platform);NSLog(@"[UIDevice currentDevice].description: %@",[UIDevice currentDevice].description);NSLog(@"[UIDevice currentDevice].localizedModel: %@",[UIDevice currentDevice].localizedModel);NSLog(@"[UIDevice currentDevice].name: %@",[UIDevice currentDevice].name);NSLog(@"[UIDevice currentDevice].systemVersion: %@",[UIDevice currentDevice].systemVersion);NSLog(@"[UIDevice currentDevice].systemName: %@",[UIDevice currentDevice].systemName);您可以得到以下结果:[UIDevice currentDevice].model: iPhone[UIDevice currentDevice].description: <UIDevice: 0x1cd75c70>[UIDevice currentDevice].localizedModel: iPhone[UIDevice currentDevice].name: Someones-iPhone002[UIDevice currentDevice].systemVersion: 6.1.3[UIDevice currentDevice].systemName: iPhone OS