in NavigationController

Hello,


I'm new in iOS want place a button on the navigation tab of my application. I found the function setRightBarButtonItem, but i have no idea how to use it.

How should i use it?

Thank you for your patience.

Best regards

Arek


Hi, 


the camera view controller is already demonstrating this programmatically



  FCloseButton := TUIBarButtonItem.Wrap(TUIBarButtonItem.Wrap(TUIBarButtonItem.OCClass.alloc).initWithTitle(NSSTREx(sCameraPopupCloseButton), UIBarButtonItemStyleDone, FToolBarDelegate.GetObjectID, sel_getUid('CloseCamera:')));
  FTakePhotoButton := TUIBarButtonItem.Wrap(TUIBarButtonItem.Wrap(TUIBarButtonItem.OCClass.alloc).initWithBarButtonSystemItem(UIBarButtonSystemItemCamera, FToolBarDelegate.GetObjectID, sel_getUid('TakePhoto:')));
  FViewController.navigationItem.setLeftBarButtonItem(FTakePhotoButton);
  FViewController.navigationItem.setRightBarButtonItem(FCloseButton);


Thank you very much for the kick in the right direction :-)