自定义TabBar,解决pop双tabbar的问题

2018-02-08  本文已影响10人  沃伦盖茨

在自定义的TabBartViewController中注册通知

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moreMore) name:@"moreMore" object:nil];

- (void)moreMore

{

    //注意,这里看到好多有说移除TabBarButton的,亲测后发现不行,故而将整个tabBar移除了,OK了

    [self.tabBar removeFromSuperview];

}

在pop的时候发送通知

上一篇 下一篇

猜你喜欢

热点阅读