UIBarButtonItem with custom image and no border

前端 未结 9 674
旧巷少年郎
旧巷少年郎 2020-12-12 12:18

I want to create a UIBarButtonItem with a custom image, but I don\'t want the border that iPhone adds, as my Image has a special border.

It\'s the same as the back b

9条回答
  •  北海茫月
    2020-12-12 12:57

    Another simple solution is

    1. Drag a standard UIButton
    2. Set the button's style to custom and set your image for that button
    3. Drag it onto the UINavigationBar
    4. Set Selector

提交回复
热议问题