If I set only one right button on the NavBar it works perfectly.
But when I’m trying to set more than one button, they showed up, but clicking on them throws exceptions.
EventHandler pickPhotoClickHandler = (s,e) => {}; //Do nothing
var pickPhotoBtn = new UIBarButtonItem(UIBarButtonSystemItem.Camera, pickPhotoClickHandler);
EventHandler sendBtnClickHandler = (s, e) => {}; //Do nothing
var sendBtn = new UIBarButtonItem (UIBarButtonSystemItem.Done, sendBtnClickHandler);
NavigationItem.SetRightBarButtonItem (pickPhotoBtn, animated:true); // This works
var btns = new UIBarButtonItem[]{sendBtn,pickPhotoBtn}; // This doesn't
NavigationItem.SetRightBarButtonItems(btns,true); // go very far
What am I doing wrong?
I managed to fix that by creating new class derived from
UIbarButtonItemand defining a constructor with IntPtrNow it works