0
의 특정보기에서 내 제목으로 rightbarbuttonitem을 추가하는 방법, tabbarcontroller의 특정보기에서 rightbarbuttontiem을 어떻게 추가합니까?tabbarcontroller
저는 storyarboard를 사용하여 tabarcontroller를 만듭니다.
내가이 시도하지만 항목은UIBarButtonItem *settingButton = [[UIBarButtonItem alloc]
initWithImage:[UIImage imageNamed:@"gear.png"]
style:UIBarButtonItemStylePlain
target:self
action:@selector(pushToSetting)];
//BarButtonItem *settingButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(insertNewObject)];
self.navigationItem.rightBarButtonItem = settingButton;
UITabBarController와 UINavigationController가 혼합되어 있습니다. – Till