Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to remove background view
    primarykey
    data
    text
    <p>I am using <code>UITabBarController</code> on a view controller i.e <code>launchviewcontroller</code> which contains code on <code>loadview</code> as below:</p> <pre><code>- (void)loadView { viewControllers=[[NSMutableArray alloc]initWithCapacity:2]; tabBarController=[[UITabBarController alloc]init]; MyProfileViewController *view1=[[MyProfileViewController alloc]init]; localNavigationController=[[UINavigationController alloc]initWithRootViewController:view1]; localNavigationController.navigationBar.alpha=1.0; // localNavigationController.navigationBar.tintColor=[UIColor colorWithRed:0.65 green:0.84 blue:0.88 alpha:1]; localNavigationController.navigationBar.tintColor=[UIColor blackColor]; // localNavigationController.navigationBar. [viewControllers addObject:localNavigationController]; [view1 release]; [localNavigationController release]; localNavigationController=nil; TodaysPicksViewController *view2=[[TodaysPicksViewController alloc]initWithLeagueType:@"CFL Football"]; localNavigationController=[[UINavigationController alloc]initWithRootViewController:view2]; localNavigationController.navigationBar.alpha=1.0; localNavigationController.navigationBar.tintColor=[UIColor blackColor]; [viewControllers addObject:localNavigationController]; [view2 release]; [localNavigationController release]; localNavigationController=nil; Rules_PoliciesViewController *view3=[[Rules_PoliciesViewController alloc]init]; localNavigationController=[[UINavigationController alloc]initWithRootViewController:view3]; localNavigationController.navigationBar.alpha=1.0; localNavigationController.navigationBar.tintColor=[UIColor blackColor]; [viewControllers addObject:localNavigationController]; [view3 release]; [localNavigationController release]; localNavigationController=nil; LogoutViewController *view4=[[LogoutViewController alloc]init]; localNavigationController=[[UINavigationController alloc]initWithRootViewController:view4]; localNavigationController.navigationBar.alpha=1.0; localNavigationController.navigationBar.tintColor=[UIColor blackColor]; [viewControllers addObject:localNavigationController]; [view4 release]; [localNavigationController release]; localNavigationController=nil; appDel=[[UIApplication sharedApplication]delegate]; tabBarController.viewControllers=viewControllers; [appDel.window addSubview:tabBarController.view]; [viewControllers release]; </code></pre> <p>}</p> <p>Now as user goes to 4th tab to logout from app I have set a button to login again redirected to login view by adding code on button click as: </p> <pre><code>-(void)ClickOnLogin { LoginViewController *LoginViewOb=[[LoginViewController alloc]init]; LoginViewOb.hidesBottomBarWhenPushed = YES; [self.navigationController pushViewController:LoginViewOb animated:YES]; [LoginViewOb release]; } </code></pre> <p>but as login view is loaded the previous view is still at back of login view. How can I remove this view from background.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload