如何隐藏导航栏的返回按钮,我用了三种方法都没效果
1个回答
展开全部
self.navigationItem.hidesBackButton = true;
self.navigationItem.setHidesBackButton(true, animated: false)
self.navigationItem.setLeftBarButtonItem(nil, animated: true)
self.navigationItem.leftBarButtonItem = nil
self.navigationItem.setHidesBackButton(true, animated: false)
self.navigationItem.setLeftBarButtonItem(nil, animated: true)
self.navigationItem.leftBarButtonItem = nil
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询