Revision: 44575
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 14, 2011 06:22 by espinallab
Initial Code
//Place this in the .m file outside any function. BOOL isiPhone(){ return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone); } BOOL isiPad(){ return (UI_USER_INTERFACE_IDIOM() != UIUserInterfaceIdiomPhone); } //Then call it from any function like this: if (isiPhone()) { //This device is an iphone } if (isiPad()) { //This device is an iPad }
Initial URL
Initial Description
Initial Title
Easy way for Checking Device Type
Initial Tags
Initial Language
Objective C