Questions tagged [uinavigationbar]

The UINavigationBar class implements a control for navigating hierarchical content in iOS. It’s a bar, typically displayed at the top of the screen, containing buttons for navigating up and down a hierarchy. The primary properties are a left (back) button, a center title, and an optional right button. You can specify custom views for each of these. The most common way to use a navigation bar is in conjunction with a UINavigationController object

A navigation bar enables navigation through an information hierarchy and, optionally, management of screen contents. A navigation bar is contained in a navigation controller, which is an object that manages the display of the hierarchy of custom views. A navigation bar appears at the upper edge of an application screen, just below the status bar.

A navigation bar usually displays the title of the current screen or view, centered along its length. When navigating through a hierarchy of information, users tap the back button to the left of the title to return to the previous screen. Otherwise, users can tap content-specific controls in the navigation bar to manage the contents of the screen.

All controls in a navigation bar include a bezel around them, which, in iOS (), is the bordered style. If you place a plain (borderless) control in a navigation bar, it automatically converts to the bordered style.

A navigation bar can be translucent or opaque. If the bar is translucent, the top edge of the main content view meets the bottom edge of the status bar, so that users can see the content behind the navigation bar. If the bar is opaque, the top edge of the main content view meets the bottom edge of the navigation bar.

On iPhone (), changing the device orientation from portrait to landscape can change the height of the navigation bar automatically. On iPad (), the height and translucency of a navigation bar does not change with rotation.

On iPhone, a navigation bar always displays across the full width of the screen. On iPad, a navigation bar can display within a view, such as one pane of a split view, that does not extend across the screen.

References:

6208 questions
2
votes
2 answers

Migration from Swift 3 to Swift 4 Navigation Bar broken interface

I have migrated my app from Swift 3.1 to Swift 4.0 (Xcode 8.3.3 to Xcode 9.0) and some part of my interface is broken now. Navigation Bar of Navigation controller is complete mess. Please, look at screenshot: There are 3 elements: left Netfnet…
Alex
  • 1,038
  • 2
  • 12
  • 32
2
votes
1 answer

How to make customize Large Navigation bar like iOS 11 "News App" do so?

Small title Large Title I wanna make a navigation bar behave like the NEWS App of Apple. I know how to make large title of the bar. But I have no idea for the right navigation bar item. Please give me some advices. Is there any delegate to know…
KTang
  • 340
  • 1
  • 17
2
votes
1 answer

How to custom navigation menus and navigation bar in Oracle apex5.1

I want to add some components to my navigation menu (user picture, name, search field), and navigation bar(dropdown menu with user informations), to get like this result.
dpccrt87
  • 53
  • 1
  • 8
2
votes
2 answers

Why three buttons are appearing in the place of Navigation backBarButtonItem in iOS 11?

I have set the UINavigation bar appearance which looks like follwing, Code: fileprivate class func barButtonAppearance() { var attributes = [String : AnyObject]() attributes[NSFontAttributeName] = UIFont(name: .Regular, size: 14) …
Shreesha Kedlaya
  • 340
  • 4
  • 19
2
votes
1 answer

UISearchBar and Two buttons in the Navigation Controller

I am trying to add two buttons and a SearchBar to my navigation controller but the alignment is not correct. I have tried almost everything such as changing the size of SearchBar, UIButton or changing the Y positioning but it didn't work. Any idea…
Persian
  • 294
  • 2
  • 10
2
votes
1 answer

Add Navigation Bar in UICollectionView in swift 4, iOS 11

After upgrading the iOS 11 and swift 4(Xcode 9), I got lots of UI problem. :( The most unsolvable problem is Navigation Problem. I put the Navigation Bar in UICollectionView Controller. Navigation bar height does not show properly and however I…
May Phyu
  • 895
  • 3
  • 23
  • 47
2
votes
1 answer

UINavigationBar disappears in iOS 11

I am trying to make my iOS app design looking like iOS 11 standard apps.I added UISearchController in UINavigationBar.Search is working good, but when user selects cell and goes to destinationViewController the UINavigationController disappears.Here…
2
votes
2 answers

iOS 11 large titles in Xamarin.Forms

How do I enable iOS 11 prefersLargeTitles throughout my Xamarin.Forms app? I tried creating a custom renderer derived from PageRenderer for NavigationPage, setting: ViewController.NavigationController.NavigationBar.PrefersLargeTitles = true; This…
Edward Brey
  • 40,302
  • 20
  • 199
  • 253
2
votes
1 answer

IOS 11 navigation bar appears smaller than it should

I have a custom navigation bar that worked well until iOS 11. It appears smaller than it should and seems to ignore the status bar height or something. I set the whole thing programmatically and the height is set to 64.
Faisal
  • 857
  • 2
  • 10
  • 21
2
votes
3 answers

navigation title custom view action is not triggering

I am trying to add action to a view which i am adding to navigation titleView let titleview = UIView() titleview.isUserInteractionEnabled = true let tapGesture = UITapGestureRecognizer(target: self, action: #selector(VC.openPopup)) …
AppleBee
  • 452
  • 3
  • 16
2
votes
2 answers

Add Right Button In NavigationController

I have story board setup with all view controller extending navigation controller with class NavigationController: UINavigationController, UIViewControllerTransitioningDelegate with custom navigation bar setup for navigation controller with class…
Ibrahim Azhar Armar
  • 25,288
  • 35
  • 131
  • 207
2
votes
1 answer

Navigation Bar not appearing when presenting View?

The navigation bar do not appear, when choose this line of code self.present(vc, animated: true, completion: nil) But when tried this code let vc = storyboard.instantiateViewController(withIdentifier: "view") let navController =…
cole
  • 3,147
  • 3
  • 15
  • 28
2
votes
2 answers

Left Arrow - UINavigationItem

I've searched around and I can't seem to figure it out. I'm sure many people will have links for me and such, which I've most likely already looked at. But if someone could please just show me code to do the following: I'd like to have a left arrow…
CodeGuy
  • 28,427
  • 76
  • 200
  • 317
2
votes
1 answer

Custom uinavigatonbar exception

I've made a custom uinavigation bar this way: @implementation UINavigationBar (UINavigationBarCategory) - (void)drawRect:(CGRect)rect { UIImage *img = [UIImage imageNamed: @"navigation_background.png"]; [img drawInRect:CGRectMake(0,…
Jorge
  • 2,156
  • 2
  • 22
  • 29
2
votes
1 answer

swift: Navigation bar blur effect

I use this code to blur navigation bar: let visualEffectView = UIVisualEffectView(effect: UIBlurEffect(style: .light)) visualEffectView.frame = (self.navigationController?.navigationBar.bounds.insetBy(dx: 0, dy: -10).offsetBy(dx: 0, dy:…
user8520118
1 2 3
99
100