Where did my Toolbar button go?
Posted
by Driss Zouak
on Stack Overflow
See other posts from Stack Overflow
or by Driss Zouak
Published on 2010-03-18T15:17:43Z
Indexed on
2010/03/18
15:21 UTC
Read the original article
Hit count: 604
When MyView gets pushed on to the NavigationController, I have the following code
public override void ViewDidLoad ()
{
this.NavigationController.Toolbar.SetItems(new UIBarButtonItem[] {
new UIBarButtonItem("Next",UIBarButtonItemStyle.Plain, ClickNext)
}, true);
this.NavigationItem.Title = "Proposal Plan - Step 1";
}
The Title gets set properly, and the code runs but in my Toolbar at the bottom of the view I don't have the "Next" button I am expecting. I put a breakpoint and verified that the Toolbar after running that line does have my button, but still nothing.
What am I mising?
© Stack Overflow or respective owner