Hiding UINavigationItem's bar button

后端 未结 11 1035
粉色の甜心
粉色の甜心 2021-01-04 07:04

I have added a BarButton item to the left of the nav.bar through Interface Builder and in the code I want this only to show in my table view\'s edi

11条回答
  •  旧巷少年郎
    2021-01-04 07:17

    You can use

    [self.navigationItem.leftBarButtonItem setEnabled:TRUE];
    

    as there is no other way to hide it. so just disable it.

提交回复
热议问题