Removing TabBar Controller when UIBar Button Clicked

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.

Answers


In appDelegate place your tabBar and in side loginView ,add this tabBar

TUTAppDelegate *appdelegte =(TUTAppDelegate*)[[UIApplication sharedApplication]delegate];

[[appdelegte window]addSubview:[[appdelegte motivationalTabBar]view]];

On button press remove TabBar

TUTAppDelegate *appDelegate = (TUTAppDelegate *)[[UIApplication sharedApplication] delegate];
[[[appDelegate motivationalTabBar] view]removeFromSuperview]

Need Your Help

Getting the selected option in HTML without jQuery

javascript node.js dom

I'm using the following function on each <option> to determine whether it is selected:

Highchart Zoom and X-Axis with String Array for Categories

javascript highcharts

I'm adapting a highchart Graph right now. Previously, we plotted points on a graph with the associated date. The chart also had maxZoom:14 * 24 * 3600000 allowing the user to drill down even furthe...