iOS 7 UI Difference between Simulator and real Device
Xcode 5.0에서 작업시 시뮬레이터와 실제 기기로 테스트시 UI가 다르게 나타나는 현상이 있다.
네비게이션 컨트롤러를 썼을 때 20, 44 pixel씩 프레임이 맞지 않는 문제이다.
시뮬레이터에 맞춰야 하는지.. 기기에 맞춰야 하는지 ㅠㅠ 3.5인치는 기기도 없고 ㅠㅠ
해결방법은
self.edgesForExtendedLayout = UIRectEdgeNone;
위 코드를 삽입하면 시뮬레이터와 실제 기기 UI가 같아진다.
후.. 구글링은 키워드가 중요하다.. ㅠㅠ
반응형
그리드형
'IT > iOS' 카테고리의 다른 글
Current View get subview (0) | 2014.06.03 |
---|---|
64bit에서 컴파일시 objc_msgsend error (0) | 2014.05.15 |
[[NSUserDefaults standardUserDefaults] dictionaryRepresentation].allKeys (0) | 2014.03.04 |
iOS random integer (0) | 2014.02.05 |
navigation bar title color (0) | 2014.02.04 |
detailView 20pixel bug (0) | 2014.02.04 |
UITableView selected background color (0) | 2014.02.04 |
iOS6 특정뷰 회전 처리 (0) | 2014.02.04 |