This snippet deals with finding out whether application is running on iPhone or ipad…
Just insert the code given below at the place you want to check
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
NSLog(@"ipad");
}
else {
NSLog(@"iPhone");
}