以编程方式将您的按钮设置为 rightBarButtonItem。
UIBarButtonItem *rightbutton = [[UIBarButtonItem alloc] initWithTitle:@"Button Title here" style:UIBarButtonItemStyleDone target:self action:@selector(buttonTapped:)];
self.navigationItem.rightBarButtonItem = settingButton;