How to change a UIBarButtonItem in a UINavigationBar

前端 未结 5 1728
醉酒成梦
醉酒成梦 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:32

    When you use self.editButtonItem, you don't need to change the style and text of the button, it is done automatically. Try removing that code, it will still work :)

提交回复
热议问题