在公共头文件中作如下定义:
#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
使用时:
if( IS_IPAD )
{
// ipad处理
}
else
// iphone处理
简单区分iphone和ipad的宏定义
原文:http://blog.csdn.net/openglnewbee/article/details/40300147