- [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone
- have a try!
- NSString * str = [UIDevice currentDevice].model;
- NSLog(@"%@",str);
- //该片段来自于http://www.codesnippet.cn/detail/091220137861.html
来源: http://www.codesnippet.cn/detail/091220137861.html