Show / Hide tab bar

前端 未结 2 1225
忘了有多久
忘了有多久 2020-12-15 14:40

Everyone I have a problem and I have been searching the solution but could not find any. I am working on a tab bar based app. Problem is that I want to hide tab bar at first

2条回答
  •  太阳男子
    2020-12-15 15:06

    create an outlet for the uitabbar, then declare it hidden in the first screen, then create a new void, NOT SENT SO IT DOESNT WORK in the first screen, make it say, lets say, hide. And inside hide, put code saying your uitabbar.hidden = YES; then, to make it work in the other view, write this in the viewDidLoad:

     [(//first view*)[UIApplication sharedApplication].delegate //the void, in this case, hide];
    

提交回复
热议问题