'IOS'에 해당되는 글 1

  1. 2012.01.28 iPad 구분하는 법
IT개발/iOS | Posted by 동물원 2012. 1. 28. 17:02

iPad 구분하는 법


if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {

     // The device is an iPad running iOS 3.2 or later.

}

else {

     // The device is an iPhone or iPod touch.

}



위의 방법이 [UIDevice currentDevice].model 을 확인 하는 방법보다 더 나은 듯 함.

출처:http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/AdvancedAppTricks/AdvancedAppTricks.html#//apple_ref/doc/uid/TP40007072-CH7-SW18

'IT개발 > iOS' 카테고리의 다른 글

SVN을 사용하고 느낀점  (0) 2011.03.22
키채인접근에서 공개키가 가져오기 안되는 경우  (0) 2011.03.16