Checking iOS Device Type

通常我們會用 UI_USER_INTERFACE_IDIOM 來做檢查

(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)

但如果 xCode Project Devices 沒有選 iPad 或是 Universal 這招就會失效,
只好改用判斷 model 的方式來處理。

([[[UIDevice currentDevice] model] rangeOfString:@"iPhone"].location == NSNotFound)