How to disable the edit button that appears in the more section of a UITabBarController?

前端 未结 16 1028
借酒劲吻你
借酒劲吻你 2020-12-02 11:30

In my application (based on the Tab bar application XCode template) I use a UITabBarController to display a list of different sections of the application that the user can a

16条回答
  •  旧巷少年郎
    2020-12-02 12:19

    The only solution that worked for me

    self.moreNavigationController.navigationBar.topItem?.rightBarButtonItem?.title = ""
    self.moreNavigationController.navigationBar.topItem?.rightBarButtonItem?.isEnabled = false
    

提交回复
热议问题