2010-01-26 3 views
3

애플은이 같은 UITabBarItem를 만들기위한, 예를보기 컨트롤러 프로그래밍 가이드를 제공하고 있습니다 :Apple 사용자 정의 UITabBarItem 이미지를 사용하는 방법?

- (id)init { 
    if (self = [super initWithNibName:@"MyViewController" bundle:nil]) { 
     self.title = @"My View Controller"; 

     UIImage* anImage = [UIImage imageNamed:@"MyViewControllerImage.png"]; 
     UITabBarItem* theItem = [[UITabBarItem alloc] initWithTitle:@"Home" image:anImage tag:0]; 
     self.tabBarItem = theItem; 
     [theItem release]; 
    } 
    return self; 
} 

그러나, 나는 그래픽 멍청한 놈이고 애플의 탭 바 항목에 대한 그래픽 내장을 사용하고 싶습니다. 내가 어떻게 할 수 있니? 사용 가능한 아이콘과 그 이름의 목록은 어디에 있습니까?

+0

사과 그래픽에 대해 잘 모릅니다. 이메일 주소를 알려주고 싶다면 더 많은 정보를 얻을 수있는 UITabBarItem 이미지가 많이 있습니다. –

답변

8

- (id)initWithTabBarSystemItem:(UITabBarSystemItem)systemItem tag:(NSInteger)tag을 사용하여 UITabBarItem을 만듭니다.
가능한 UITabBarSystemItem 값은 UITabBarItem 클래스 참조 인 '상수'섹션에서 찾습니다.

관련 문제