rightBarButtonItem 속성을 제외하고 UITabBarController의 moreNavigationController의 모든 속성을 설정할 수있는 매우 이상한 문제가 있습니다. 모든 바 오른쪽 단추 항목을 사용할 수 없게하는 customizableViewControllers 속성과 관련된 일부 버그로 인해 발생할 수 있습니다. 어떤 아이디어를 수정하는 방법?UITabBarController의 moreNavigationController 오른쪽 버튼을 설정할 수 없습니다.
UIBarButtonItem *doneButton = [[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemDone
target:self
action:@selector(popViewController)];
self.customizableViewControllers = nil;
self.moreNavigationController.navigationBar.barStyle = UIBarStyleBlack;
self.moreNavigationController.topViewController.navigationItem.title = @"test"; //this works
self.moreNavigationController.topViewController.navigationItem.leftBarButtonItem = doneButton; // this works
self.moreNavigationController.topViewController.navigationItem.rightBarButtonItem = doneButton; // this doesn't