More than 1 rightBarButtonItem on navigation bar

前端 未结 9 1060
清歌不尽
清歌不尽 2021-01-30 02:06

I would like to have two rightBarButtonItems on navigation bar. One for Edit and the other for Add.

Obviously I can\'t make it using Interface Builder.

Does anyb

9条回答
  •  独厮守ぢ
    2021-01-30 02:35

    You can do it from Interface Builder. What I have done in my app - just added UIView on left Item of navigation bar and placed 3 buttons in this view and connected their action. You can follow this to add more than one button in left/right navigation item.

    Refered: Toolbar items in sub-nib

    enter image description here

提交回复
热议问题