Please check the attached images. When the user touches the profile tab on the first image, then the tabbar should be like the second tab. I already searched through Github and *, but I can't find how to implement this tabbar.
请检查附加的图像。当用户触摸第一个图像上的配置文件选项卡时,标签栏应该像第二个选项卡一样。我已经搜索了Github和*,但我找不到如何实现这个tabbar。
1 个解决方案
#1
1
You will want to look at UITabBarController
and .setViewControllers
.
您将需要查看UITabBarController和.setViewControllers。
The idea would be that when "Profile" is tapped, your custom TabBarController would use .setViewControllers
to change the new "set" of controllers that you want displayed. Tapping the "Back" button would do the reverse.
我们的想法是,当点击“配置文件”时,您的自定义TabBarController将使用.setViewControllers来更改您想要显示的新“控制器”集。点击“后退”按钮可以反过来。
#1
1
You will want to look at UITabBarController
and .setViewControllers
.
您将需要查看UITabBarController和.setViewControllers。
The idea would be that when "Profile" is tapped, your custom TabBarController would use .setViewControllers
to change the new "set" of controllers that you want displayed. Tapping the "Back" button would do the reverse.
我们的想法是,当点击“配置文件”时,您的自定义TabBarController将使用.setViewControllers来更改您想要显示的新“控制器”集。点击“后退”按钮可以反过来。