2014-10-06 3 views
0

이전 질문 이었지만 해결할 수 없습니다. 나는 탭바 컨트롤러가 사용자 정의 탭 막대가 아니기 때문에 스토리 보드에 7 개의 탭 항목이있는 Tabbar 컨트롤러를 만들었으므로 탭 막대의 더 많은 섹션에 편집 버튼을 숨기고 싶습니다. 로 그 내가 코드에 대한ios 탭에서 편집 단추 사용 안 함

: 또한

on application didFinishLaunchingWithOptions: method 

_tabbarconroller.customizableViewControllers=[NSArray arrayWithObjects:nil]; 

및 방법

- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated 
{ 

    UINavigationBar *morenavbar = navigationController.navigationBar; 
    UINavigationItem *morenavitem = morenavbar.topItem; 

    morenavitem.rightBarButtonItem = nil; 
} 

를 추가하지만이 iOS7에에서 작동하지 않는 것은 나에게 응답하거나 이에 대한 모든 리소스주세요

+0

확인해 보셨습니까? http://stackoverflow.com/questions/825066/how-to-disable-the-edit-button-that-appears-in-the-more-section-of-a-uitabbarcon –

+0

i 그것을 확인하지만 작동하지 않습니다 @ PradhyumanSinh Chavda –

+0

나는 그것을 스토리 보드 컨트롤러가 아닌 사용자 정의 탭 막대 컨트롤러라고 생각합니다. –

답변

0

UITabBarController's customizableViewControllersproperty을 사용하여 nil :

yourTabBarController.customizableViewControllers = nil; 
+0

내 appDelegate.m 파일에 코드를 작성하면 완료됩니다. : _tabbarconroller.customizableViewControllers = nil ; 및 AppDelegate.h 내가 탭 모음을 @ 속성 (강하고 비 구조)로 선언합니다. UITabBarController * tabbarconroller; 하지만 작동하지 않습니다. –

관련 문제