Adding multiple custom bar buttons to custom nav bar

后端 未结 3 1067

I need to add two bar button items to each end of my custom navigation bar in Swift. I\'m using the following method, and although I get no errors, nothing at all is ap

3条回答
  •  时光说笑
    2021-01-25 00:06

    UIBarButtonItem can be created with an custom view

    • create a view
    • add UIButtons to it
    • layout it
    • create a UIBarButtonItem with custom view
    • add it to the navigation bar

提交回复
热议问题