2010-02-24 6 views

답변

1

할 수 있습니다와 선택 버튼 색상 변경 :

self.tabBar.selectedImageTintColor = [UIColor blackColor]; 

과 TabBar의 배경 색상 :

self.tabBar.tintColor = [UIColor whiteColor]; 

하지만 아이폰 OS 5.0

+0

0

이 시도를 :

UITabBarController *tabBarC = [[UITabBarController alloc] init]; 

if ([[[UIDevice currentDevice] systemVersion] compare:@"5.0" options:NSNumericSearch] != NSOrderedAscending) { 
    tabBarC.tabBar.selectedImageTintColor = [UIColor redColor]; 
} 

iOS5 + 만 기억하십시오.

+0

입니까? –

1

이미 여기에 게시로 :이 작업을 수행 할 수있는 더 쉬운 방법이있다 Change tab bar tint color on iOS 7

.

파일 속성을 열고 "글로벌 색조"를 선택하십시오.

인터페이스 작성기에서 앱의 색조 색을 설정할 수도 있습니다. 파일 속성의 인터페이스 빌더 문서 섹션에있는 전역 색조 메뉴를 사용하면 색상 윈도우를 열거 나 특정 색상을 선택할 수 있습니다.

또한 참조 :

https://developer.apple.com/library/ios/documentation/userexperience/conceptual/TransitionGuide/AppearanceCustomization.html