4

이것은 장거리 슛처럼 보이지만 사람이 할 수있는 방법을 알고 있나요 : 의 UITabBar 사용자 정의

  • 가 변경이 높이
  • 당신에게있어 화면의 상단 부분에

    1. 총수의 UITabBar 개인 API 메서드를 제안하는 것을 환영합니다.

    답변

    5

    private API가 필요하지 않은 경우 applicationDidFinishLaunching 메서드에서이 메서드를 사용해보십시오.

    controller = [[UITabBarController alloc] initWithNibName:nil bundle:nil]; 
    
    HeadlinesViewController *headlines = [[HeadlinesViewController alloc] init]; 
    OpinionsViewController *opinions = [[OpinionsViewController alloc] init]; 
    
    controller.viewControllers = [NSArray arrayWithObjects:headlines, opinions, nil]; 
    
        // set your position , width and height there 
    controller.tabBar.frame = CGRectMake(0, 20, 320, 50); 
    [window addSubview:controller.view ]; 
    [window makeKeyAndVisible]; 
    
    0

    난 그냥

    당신이

    UITabBar height in iOS 5 그것은 당신을 도울 것입니다 희망이를 확인하실 수 있습니다 :)

    을 TabBar의 높이 변경 카테고리를 썼다