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