what is the code to detect whether ios app running in iPhone, iPhone Retina display, or iPad?
Background:
for my iPhone application I have defined i
Here is some code to copy and paste...
bool runningOniPhone; if([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone){ runningOniPhone = TRUE; } else { runningOniPhone = FALSE; }