How to place UIBarButtonItem on the right side of a UIToolbar?

前端 未结 6 1752
故里飘歌
故里飘歌 2020-12-14 00:39

I have designed a view with a toolbar that appears modally in Interface Builder. I have a UIBarButtonItem that is on the left hand side, which I would like to appear on the

6条回答
  •  抹茶落季
    2020-12-14 01:01

    If you can get away with this not being a UIBarButtonItem (for example, an info button), what I do is change the layer of the button to always be in front of the Toolbar. This way, when I drag the button over the toolbar in IB it doesn't automatically suck it in and over to the left side.

提交回复
热议问题