Questions tagged uinavigationbar

Explore the latest questions and answers asked by our top developers.

iOS 13 Navigation Bar Large Title Issue

I am trying to show a large Title in a Navigation bar, but with clear background. When scrolled up, for it to be a bar with blur effect. This looks correct, how ever, when scrolling, the animation seems to be broken. Also, transition gets stuck time to time: My code as follows: UINavigationController: override func […]

By Gizmodo
Categorised as ios, swift, uinavigationbar, uinavigationbarappearance, xcode

Grey background in navigation bar with searchController added to navigationItem during push

I have a table view in navigation controller so that I can push the detail view controller on the stack. It works fine, until I add a search controller to the navigation item, like so: searchController = UISearchController(searchResultsController: nil) searchController.obscuresBackgroundDuringPresentation = false searchController.hidesNavigationBarDuringPresentation = false searchController.searchBar.delegate = self searchController.searchBar.tintColor = Colors.mlLabel navigationItem.searchController = searchController definesPresentationContext […]

Large title to small title switch in navigation bar is not smooth iOS 13, sticky

I have a UINavigationController with default value of it’s navigationBar.prefersLargeTitles = true . I am switching that to false when I push into a new scene lets call it (DetailsViewController), by changing it into the viewWillDisappear . override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) navigationController?.navigationBar.prefersLargeTitles = false } Now in DetailsViewController I am using willMove(to […]

By Mohmmad S
Categorised as ios, swift, uinavigationbar, uinavigationcontroller

Autolayout warning when using prompt in navigation bar

I am using a navigation bar with a prompt, looking like this: I receive the following auto layout warnings in the console: “<NSAutoresizingMaskLayoutConstraint:0x60000043be30 h=–& v=–& _UINavigationBarModernPromptView:0x7fb3c6416640.width == 0 (active)>”, “<NSLayoutConstraint:0x600000421400 UILabel:0x7fb3c66d8bf0’Plant guide’.centerX == _UINavigationBarModernPromptView:0x7fb3c6416640.centerX (active)>”, “<NSLayoutConstraint:0x600000421f90 UILabel:0x7fb3c66d8bf0’Plant guide’.trailing <= UILayoutGuide:0x600001e58fc0’UIViewLayoutMarginsGuide’.trailing (active)>”, “<NSLayoutConstraint:0x600000421e00 ‘UIView-rightMargin-guide-constraint’ H:[UILayoutGuide:0x600001e58fc0’UIViewLayoutMarginsGuide’]-(20)-|(LTR) (active, names: ‘|’:_UINavigationBarModernPromptView:0x7fb3c6416640 )>” “<NSAutoresizingMaskLayoutConstraint:0x60000043be30 h=–& v=–& _UINavigationBarModernPromptView:0x7fb3c6416640.width == 0 (active)>”, […]

By Leontien
Categorised as autolayout, ios, swift, uinavigationbar

Increase the height of UINavigationBarLargeTitleView

I want to add a banner to the navigation bar, but by increasing the height of it. I want to copy the design and behaviour of an artist page in the Apple Music app: It behaves just like a normal Large Title would, except for that it has been moved down, it has a sticky […]

By Zandor Smith
Categorised as ios, swift, uinavigationbar, uinavigationcontroller

iOS search bar added after a small delay doesn’t appear in the navigation bar

If I add a search bar after a 0.1 second delay then it doesn’t appear in the navigation bar. If I change the delay to 0.5 seconds then it does appear. Is this because when the delay is short it runs during the push animation? How can I make it show up after the 0.1 […]

By graham mendick
Categorised as ios, uinavigationbar, uisearchbar

Set navigationbar size according to background image

I have set an backgroundImage for my navigationbar. This works fine. But I would like to have the navigationbar height to be adjusted to the background image. At the moment the width of the background images is also not set according to the screen size. I tried setting the height of the navigationbar like described […]

By progNewbie
Categorised as ios, uinavigationbar, xcode

How to change the title registry using prefersLargeTitles?

I know that it is possible to set font family, font size and color separately for «large» and «small» titles using prefersLargeTitles. The question is: is there any options for navigation controller to show the «large title» in opened navigation panel with uppercase? Now I use custom Navigation Controller: class MyNavigationController: UINavigationController { public var […]

By Max
Categorised as ios11, swift, uinavigationbar

full screen background image while using uinavigationcontroller

I have an UINavigationController with UINavigationBar hidden = YES. I want full screen bg for view that embedded in UINavigationController. But I get only that: Is it possible to make it full screen under status bar? I achieved that with standalone view controller, but while using it in UINavigationController it becomes like on image. […]

how to disable a navigation bar button item in iOS

I have created a navigation controller. In the second view (which is pushed), I have some webservice call and placing a overlay view and setting self.view.userInteractionEnabled = NO ; Once web service call is complete, then I am reverting to self.view.userInteractionEnabled = YES ; When I do this, every other buttons except the buttons on […]

By Sravan
Categorised as ios, ios7, uinavigationbar
1 2

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us