Programming/iOS (Swift,Objective-C)

iOS 장비 정보 가져오기 및 기타정보들..

현우수범아빠 2011. 11. 16. 15:03
UIDevice 클래스 참조.

[UIDevice currentDevice]  ==> UIDevice의 인스턴스를 얻어온다.
[[UIDevice currentDevice] model];


화면 크기 정보:
CGRect screenRect = [[UIScreen mainScreen] bounds];

상단의 statusBar 숨기기 :
[UIApplication sharedApplication].statusBarHidden = YES;