Working an issue on a project. We needed to modify the navigation bar in iOS.
I was not sure how to do this but turns out we can use the NavigationItem class in the MonoTouch library.
var btnEmail = new UIBarButtonItem(UIImage.FromFile("image/mail.png"),UIBarButtonItemStyle.Plain, (s,e) => {});
NavigationItem.SetRightBarButtonItems(new UIBarButtonItem[] { btnEmail}, true);
Source:
No comments:
Post a Comment