본문 바로가기

Programming/iOS

네비게이션바 밑 라인 없애기

반응형

플랫디자인으로 네비게이션쪽 작업을 하다 보면 네비게이션과 같은 색상을 사용할때가 있습니다.

이런 경우 아래와 같이 중간에 줄이 생깁니다.

이걸 제거해야... 좀더 이쁘게 보일텐데요.


아래 두줄의 코드를 입력하면 UINavigationBar 밑의 줄이 제거됩니다.

[[UINavigationBar appearance] setShadowImage:[[UIImage alloc] init]];
[[UINavigationBar appearance] setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault];



이제 원하는대로 라인이 없어짐!


반응형

'Programming > iOS' 카테고리의 다른 글

[Swift] types  (2) 2014.06.18
Crashlytics Beta 기능 - iOS  (0) 2014.06.11
podspec에 외부 framework 추가  (0) 2014.05.08
URL scheme for KakaoOpenSDK is not set properly in plist.  (0) 2014.02.08
Xcode Bots 적용  (0) 2014.02.06