How to change a UIBarButtonItem in a UINavigationBar

前端 未结 5 1731
醉酒成梦
醉酒成梦 2021-02-06 04:40

I\'m trying to set up a list of items that can be edited. I have a main view, with a UINavigationBar at the top and a UITableView directly under it. I\'d like to have my \"edit\

5条回答
  •  逝去的感伤
    2021-02-06 05:07

    Got it! Looks like you can get to the UINavigationItem by using the topItem property. Just had to read through the docs, like always!

提交回复
热议问题