if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { // indicates game is running on iPad }
else { // indicates game is running on iPhone }