0

큰 프로젝트를 ios7로 업데이트 중입니다. 그리고 왼쪽 탐색 버튼을 업데이트 할 때 문제가 발생합니다. 나는 무엇이 문제인지 이해하지 못한다.ios7 탐색 표시 줄 왼쪽 UIBarButtonItem 문제

는 iOS6의 :

enter image description here

iOS7에 : 왼쪽 버튼 이미지가 없습니다 문제가 내가 다음의 ViewController 다시 버튼에서 같은 문제가 갈 때 왼쪽 버튼이 문제 또한

enter image description here

이 ios7 :

enter image description here

메뉴 : link에 사용하고 있습니다. 이미지는 투명합니다.

어떻게이 문제를 ios7에서 해결할 수 있습니까? 큰 프로젝트이고 ı 모든 코드를 공유 할 수 없습니다. 내가 기사를 읽을 때 기사에 문제가 있다고 말하는 것은 setTintColor입니다. 권리 ?

죄송합니다. 내 영어.

감사합니다.

+0

[아이폰 OS 7 UIBarButton 뒤로 버튼 화살표 색상] (http://stackoverflow.com/a/18487559/593709) (이 이미지처럼) 이미지있는 UIButton를 만들고 UIBarButtonItem에 추가해야 –

+0

. ios7 UIButtons 및 barbuttons는 이와 같이 표시되며 기본값입니다. – karthika

+0

@ AdilSoomro 시도했지만 작동하지 않습니다. –

답변

0

에 알파 값 버튼 항목의

  • 변화는 내가 글로벌 색조를 변경

    if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) 
    { 
        [self.navigationController.navigationBar setTintColor:[UIColor whiteColor]]; 
    } 
    else 
    { 
        [self.navigationController.navigationBar setTintColor:[UIColor colorWithRed:.694 green:.164 blue:.105 alpha:1.0f]]; 
    } 
    
  • 0

    왼쪽 상단 네비게이션 바 버튼에 사용되는 이미지 색상은 무엇입니까? 당신은 다음을 변경하려고 할 수 있습니다.

    1. 는 기본과 그 배경으로 투명 색상으로 바 버튼 항목 아래에있는 버튼 항목 색조 보내기 모음 단추 항목 색조 = 투명 색상
    2. 주세요. 1.
    +0

    나는 편집 한 질문. 질문에서 내 이미지를 볼 수 있습니다. 이미지가 투명 –

    +0

    내 대답 didnot 작업에 쓴 방법 않았다? – azmuhak

    +1

    ios7 초기 버전에도 지원하고 싶습니다. 나 한테는 효과가 없어. 내가 해결 했어. 내 대답을 나눌거야. –

    1

    .I이있는 viewDidLoad 메소드에 추가 한 문제를 해결하고 난 보통 내 UIBarButtonItem을 유지하기 위해이 방법을 사용합니다.

    #define kColorGlobalTint [UIColor redColor] 
    UIColor *defaultColor = [UIView appearanceWhenContainedIn:[UINavigationBar class], nil].tintColor; 
    [[UIView appearance] setTintColor:kColorGlobalTint]; 
    [[UIView appearanceWhenContainedIn:[UINavigationBar class], nil] setTintColor:defaultColor]; 
    
    [[UINavigationBar appearance] setBarTintColor:kColorGlobalTint]; 
    [[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];