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 7489109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:12:05+00:00 2026-05-29T15:12:05+00:00

UIButton from the UIToolbar on the Mainviewcontroller when displays UIView , UIToolbar slides up

  • 0

UIButton from the UIToolbar on the Mainviewcontroller when displays UIView, UIToolbar slides up in the View displayed. From the View when infobutton is pressed to present modalviewcontroller and upon dismissal modalviewcontroller slides down.

UIToolbar and Modalviewcontroller both are behaving normal in the Mainviewcontroller i.e UIToolbarnot sliding up and Modalviewcontroller not sliding down upon dismissal.

- (void)displayviewsAction:(id)sender
{
   self.view = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]]autorelease]; 

  [self.view setFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];

   PageOneViewController *viewController = [[[PageOneViewController alloc] init]autorelease];

   [self.view addSubview:viewController.view];

   [self.view addSubview:self.toolbar];

}

Any ideas why it is happening and what should i do to fix it.

  • 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-05-29T15:12:06+00:00Added an answer on May 29, 2026 at 3:12 pm

    Solved one issue out of these two

    By adding this statement

    [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
    

    removed the gap which was showing upon dismissal of the modalviewcontroller

    Basically now displayviewsAction goes like this

    - (void)displayviewsAction:(id)sender
    {
       self.view = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]]autorelease];
    
        [self.view setFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    
    [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
    
       PageOneViewController *viewController = [[[PageOneViewController alloc] init]autorelease];
    
       [self.view addSubview:viewController.view];
    
        [self.navigationController setToolbarHidden:NO];
    
       [self.view addSubview:toolbar];       
    }
    

    But still struggling with uitoolbar gap from the bottom when view is loaded. Any ideas how to solve the UIToolbar gap from the bottom of the view.

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

Sidebar

Related Questions

How can I disable a UIButton from being pressed... while I show a graphic
I have a UIButton , that when pressed, brings up a new view where
I have a working UIButton in my view controller's view. I have a UIView
Is it impossible to present a popover controller from a view controller that's presented
In InterfaceBuilder, I'm creating the simplest possible UIButton, by simply dragging from the Library
i want to drag and drop my UIButton from one place to another, and
I want to change UIButton color from brown color to darkbrown color. How i
For example I want to overwrite from UIButton: + (id)buttonWithType:(UIButtonType)buttonType So I would do:
I have a custom button which inherits from UIButton. I'm handling the TouchUpInside event
I have a custom button, subclassed from UIButton that is initialised as below (obviously

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.