[Objective C] Detect if it is using ipad
The following code is for detecting ipad or not.
#define IPAD UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad
if (IPAD) {
// iPad
} else {
// iPhone / iPod Touch
}
留言
張貼留言