问题描述
首先在我的应用程序中,我有一些登录视图控制器,在使用按钮操作登录后,我将移动到带有四个选项卡的 Tabbar 控制器.我的问题是当我点击 barbutton 并需要来到那个 loginViewController 时,我需要退出那个 tabbar 控制器.请任何人帮助我.实际上我已经尝试了一些方法,但我无法理解.提前感谢为问题提供有价值的解决方案.
In my Application first i have some Login View Controller,after login with button action am moving to Tabbar Controller with Four tabs. my problem is i need to quit that tabbar controller when i click on barbutton and need to come to that loginViewController.please anybody help me in this.actually i have tried some methods but i dint get that.Thanks in Advance for Valuable Solution to problem.
推荐答案
在 appDelegate 中放置你的 tabBar 并在侧边 loginView 中,添加这个 tabBar
In appDelegate place your tabBar and in side loginView ,add this tabBar
TUTAppDelegate *appdelegte =(TUTAppDelegate*)[[UIApplication sharedApplication]delegate];
[[appdelegte window]addSubview:[[appdelegte motivationalTabBar]view]];
按下按钮移除 TabBar
On button press remove TabBar
TUTAppDelegate *appDelegate = (TUTAppDelegate *)[[UIApplication sharedApplication] delegate];
[[[appDelegate motivationalTabBar] view]removeFromSuperview]
这篇关于单击 UIBar 按钮时删除 TabBar 控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!