判断用户使用的是ipad还是iphone

//判断是ipad还是iphone
-(BOOL)IsIPhone
{    
    BOOL isPhone = NO;
    if(UI_USER_INTERFACE_IDIOM())
        isPhone = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone);    
    return  isPhone;
}

编程技巧