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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:16:40+00:00 2026-05-29T21:16:40+00:00

I recently started using interface builder, the problem i’m facing right now is when

  • 0

I recently started using interface builder, the problem i’m facing right now is when i use the back button of navigation controller, my UI elements’ y axis go up by roughly 20-30 px, is there some setting i’ve to use to avoid this problem ? And they go up only when i use pushViewController, when i use popViewController it loads the way i need.

Code i’m using for pushing:

    examVC=[[ExampleClass alloc] initWithNibName:@"ExampleClass" bundle:nil];
    [[self navigationController] pushViewController:examVC animated:YES];

I’m attaching the images with the question. Please note how label has gone down about 20-30 px.

Why does this happen? What am i doing wrong ?

Thanks for all the help.

Edit : changed the screens for better clarity

I’m using pushing code on the round rect button.

Screen 1:UI elements set in my IB

My UI elements in IB

Screen 2: How it looks when pushed from previous view
Pushed from previous

Screen 3: How it looks when popped from the “Next View”

Popped from the next

  • 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-29T21:16:41+00:00Added an answer on May 29, 2026 at 9:16 pm

    My home view controller had the navigation bar hidden, the screen i posted was the second view which comes after the home view. I wanted to hide navigation bar in the first view only, so i had used :

    - (void)viewDidDisappear:(BOOL)animated
    {
         [self.navigationController setNavigationBarHidden:NO animated:animated];
         [super viewDidDisappear:animated];
    }
    

    It caused the problem because i was showing the navigation bar again in viewDidDisappear, so the view would load first then the navigation bar would be shown causing it to overlap.

    So i put the same code in viewWillDisappear, which removed the issue. As navigation bar did load before loading of the next view. Now the view loads just like i designed it in interface builder.

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

Sidebar

Related Questions

I recently started using R language and now i am using R for most
I've recently started using Expression Sketchflow to prototype some user interface designs. I currently
I recently started using RavenDb. I am converting a relational dbase to use RavenDb.
Started using omnifocus recently and really like it. I prefer gmail's web interface, so
I recently started using Eclipse at work for my Java servlet projects. I've been
We recently started using maven for dependency management. Our team uses eclipse as it's
I recently started using scons to build several small cross-platform projects. One of these
I recently started using Git as my version control system for some Cocoa projects
I recently started using Linux as my primary OS. What are the tools that
I recently started using lcov to visualize my code coverage. It's a great tool.

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.