현재 구동하는 기기가 아이패드인지 확인하는 코드
if ([[UIDevice currentDevice] respondsToSelector:@selector(userInterfaceIdiom)]) { if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) { //여기까지 오면 아이패드임 } }
'프로그램 경험 > iOS' 카테고리의 다른 글
[iPhone] Segmented Control의 Momentary 속성은 무엇인가? (0) | 2010.09.16 |
---|---|
[iPhone] 코드로 UIToolbar에 UISegmentedControl 넣기 (0) | 2010.09.15 |
[iPhone] iPhone으로 세션을 시작할 수 없기 때문에... (0) | 2010.09.14 |
[iPhone] 아이폰 4.1 버전 업그레이드 이후 기기 연동안됨 (0) | 2010.09.14 |
[iPhone] 개발전 사전 지식 (0) | 2010.08.25 |