Device detection for iPad is easy. Just call this function as shown below.


+(BOOL) isPad
{
    return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad);
}