`
wanggp
  • 浏览: 147714 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

How does one get UI_USER_INTERFACE_IDIOM() to work with iPhone OS SDK < 3.2

阅读更多

 

BOOL iPad = NO;
#ifdef UI_USER_INTERFACE_IDIOM
iPad = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad);
#endif
if (iPad) {
// iPad specific code here
} else {
// iPhone/iPod specific code here
}

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics