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

  • Home
  • SEARCH
  • 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 7773341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:06:51+00:00 2026-06-01T17:06:51+00:00

I am developing one application.In that I need to decrease the UINavigationBar size, For

  • 0

I am developing one application.In that I need to decrease the UINavigationBar size, For that I use the below code.

CGFloat navBarHeight = 10.0f;    
CGRect frame = CGRectMake(50.0f, 0.0f, 320.0f, navBarHeight);
[self.navigationController.navigationBar setFrame:frame];

But when I go to next page, that page Navigationbar also changed.But I need to change only one page. And I want to separate the back button and place before navigation bar.So for that i place one button before UINavigationBar.But I don’t perform it action.

So please tell me how to do this one.

Thanks in advance…

  • 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-01T17:06:52+00:00Added an answer on June 1, 2026 at 5:06 pm

    What you need to be aware of is that the Navigation Controller manages an entire view hierarchy. When you have ViewControllerA, in which you alter the navigation bar of the navigation controller’s height, and then push ViewControllerB onto that navigation controller’s stack, you are effectively looking at the same navigation bar. You will need to change the height back to it’s original in ViewControllerB.

    I’m not sure what you mean by “Separate the back button and place before navigation bar”. Do you have a picture or could you clarify the question?

    UPDATE: Based on your comment, what you are trying to achieve is possible, but a bad idea. A UINavigationController’s navigationBar spans the entire width of the screen. Regardless of the technical feasibility of shortening the width of this bar to show your button to the left of it, this arguably infringes on the HIG’s, which require standard use of standard iOS features; i.e. the navigation bar should always span the width of the device in either orientation. If you are looking to replace the standard back button with a different button, that is possible by simply replacing the leftNavigationItem, i.e.

    self.navigationItem.leftNavigationItem = <SomeUIBarButtonItem>;
    

    You probably want to set hidesBackButton = YES, as well.

    UPDATE 2: I tested this in a small Xcode project, and you can change the width of the navigation bar. It looks silly, but it’s possible. However, if you use a nib and set the NavigationBar property on that nib, when you add your button to the view controller’s view, you have to set the y value of the frame to a negative number to get it in line with the nav bar. Even still, setting text or target/actions on this button don’t seem to work. The navigation bar might reserve that width for itself. Removing the nav bar setting from the nib and trying again still doesn’t do it. The presence of the navigation bar (or, really, the navigation controller, most likely), seems to prevent anything else from receiving touch events in that area.

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

Sidebar

Related Questions

I'm developing one application for iphone using phone gap.I that I need to display
I am developing one web application. In that i want to use variable's value
I am developing one application that requires records from Addressbook , I need all
Iam developing one application.In that i need to set the image for segments in
I am developing one application.In that iam using the progress view.In this i need
I am developing one application and in that application I need to implement push
I am developing one applciation.In that I need to display the 9 UIImageViews in
Iam developing one application.In that i take the string from array and replace .xml
I'm developing one sms application. In that once the SMS comes to inbox it
i am developing one application with map view i need display the weather depends

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.