判断设备类型是iPhone还是iPad

在Target->Targeted Device Family的值改为iPhone/iPad


if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)

 {

    /* this is ipad */

 }else 

 {

   /* this is iphone */

 }

posted @ 2011-08-18 14:14  Gang.Wang  阅读(600)  评论(0编辑  收藏  举报