在Target->Targeted
Device Family的值改为iPhone/iPad
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
/* this is ipad */
/* this is iphone */
在Target->Targeted
Device Family的值改为iPhone/iPad
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
/* this is ipad */
/* this is iphone */