判断用户使用的是ipad还是iphone 2015/11/04 16837 //判断是ipad还是iphone -(BOOL)IsIPhone { BOOL isPhone = NO; if(UI_USER_INTERFACE_IDIOM()) isPhone = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone); return isPhone; }