How do I programatically set my right navigation bar button's title. I've tried
[self.navigationItem.rightBarButtonItem setTitle:@"Test"];
and have also tried creating an outlet for the button and then trying to assign it a value.
self.rightBarButton.titleLabel.text = @"Test";
Try this:
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Test" style:UIBarButtonItemStylePlain target:target action:action];