#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
does not check for a specific device (iPhone 4, iPhone 5, etc) but a device category (iPhone, iPad).
Here is another SO question that shows what the macro does. This will help you understand: Is it safe to check for UI_USER_INTERFACE_IDIOM() to determine if it's an iPhone or iPad?