Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7734817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:20:43+00:00 2026-06-01T07:20:43+00:00

I am adding uiimageview as a subview to tabbarcontroller.view. when i pushed to other

  • 0

I am adding uiimageview as a subview to tabbarcontroller.view. when i pushed to other viewcontroller tabbar gets hided but the image added to the tabbarcontroller is appearing.
Please help me to remove the imageviewwhile pushing to other viewcontroller.

        imgV=[[UIImageView alloc]initWithFrame:CGRectMake(0, 428, 320, 48)];
    tabBarController = [[UITabBarController alloc] init];
    tabBarController.moreNavigationController.navigationBar.barStyle = UIBarStyleBlackOpaque; 
tabBarController.moreNavigationController.topViewController.view.backgroundColor=[UIColor clearColor];  
tabBarController.delegate=self;

// tabBarController.selectedIndex=0;

UIImage *img  = [UIImage imageNamed: @"home_selected.png"];
[imgV setImage:img];
//    [imgV setAlpha:0.5];

[self.tabBarController.view  addSubview:imgV];
[self.tabBarController.view  bringSubviewToFront:imgV];  

When pushing to other viewcontroller

    -(void)logoutBtnTap
    {
appDelegate.enterLogout=YES;
for(UIImageView *view in[self.view subviews])

{
    [view removeFromSuperview];

}


Login_iPhone *controller=[[Login_iPhone alloc]init];
[controller setHidesBottomBarWhenPushed:YES];
[acctExec_iPhone.imgV removeFromSuperview];
acctExec_iPhone.imgV.hidden=YES;

[self.navigationController pushViewController:controller animated:YES];

[controller release];

}

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T07:20:44+00:00Added an answer on June 1, 2026 at 7:20 am

    beacuse hidesBottomBarWhenPushed=yes is mean your tabBarController hide tabbar not view.

    Be a point of caution, you will need to add to imageView in tabBar not view.

    maybe this method send to message tabBarController.tabBar subviews, when a operate push or pop object controller.

    so, your imgV add to tabbar. here for example.

    UIImage *img  = [UIImage imageNamed: @"home_selected.png"];
    [imgV setImage:img];
    
    [self.tabBarController.tabBar addSubview:imgV];
    [self.tabBarController.tabBar bringSubviewToFront:imgV];
    

    but carefully tabBarController.tabBar height-size different tabBarController.view

    so, you frame should set size or coordinates.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am adding Uiimageview as a subview to tabbarcontroller.view. when i pushed to other
I'm having a memory problem related to UIImageView. After adding this view to my
I'm adding an image subview to an UITableViewController with a grouped table. Once I
I have a Background view (UIImageView) in that i am adding a view(UIView). this
Adding an image to a UINavigationItem's titleView is pretty trivial, but when I push
in my app i have a table view and i am adding 4 image
I'm attempting to add a UIImageView to the subview of a UILabel, but for
I am creating a program in which i am adding an image view on
Adding Exceptional Handling is a good practise, but I have a doubt, In our
Adding the row one by one in the button click.. (i tried but its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.