[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
}

留言

這個網誌中的熱門文章

How to PHP export to Excel 2

html viewport meta