So many posts on this and none are working. 🙁
So I am missing something simple, just do not know what that is.
I have dropped a Navigation Bar and a BarButtonItem on my view in IB.
I have in my .h file:
IBBarButtonItem callHelp;
I have @property and @synthesized it
then I have connected it in my IB “control drag”
then in my viewDidLoad I have tried all of the following
callHelp.setHidden=TRUE;
callHelp.hidden=TRUE;
callHelp.Hidden=TRUE;
[callhelp setHidden=TRUE];
self.navigationItem.rightBarButtonItem = nil;
and something I found on stack for arraying the toolbar/navbar
So what should I be kicking myself for missing?
If you have added your
UINavigationBarby InterfaceBuilder (and it’s not added byUINavigationControllerusingself.navigationItemwill get you nowhere.You have to add an
IBOutletfor yourUINavigationBar– the same as you did withcallHelpbutton. And then inviewDidLoadcall