uinavigationitem Questions

6

Solved

I have a UITableViewController subclass that I have wrapped in UIViewControllerRepresentable. I have set the navigationItem.title and navigationItem.leftBarButtonItems in my view controller. I pre...

6

Solved

I’m attaching a UISearchController to the navigationItem.searchController property of a UITableViewController on iOS 11. This works fine: I can use the nice iOS 11-style search bar. However, I’d l...
Joleen asked 15/9, 2017 at 12:42

8

I used this code to use a custom image as the back button in the whole app. [[UINavigationBar appearance] setBackIndicatorImage:[UIImage imageNamed:@"back"]]; [[UINavigationBar appearance] setBack...
Pants asked 31/3, 2014 at 17:35

5

Solved

Is it possible to change the x-offset of the large navigation bar title? I would like to change the x-offset to 36pt.

11

Solved

So I'm wanting to add a "subtitle" under the title in the navigation bar in navigation controller. Mostly everything I look up so far wants me to use CGRect. I don't know a whole lot what that is ...

4

Solved

I tried to add a navigation bar button with custom image. However, whatever method I use, the image always appears stretched. Method 1: let barbuttonitem = UIBarButtonItem(image: UIImage(named: ...
Unbolt asked 4/8, 2017 at 21:5

28

Solved

How do you remove the back button text. Current back button: < Back Desired back button: < AnythingElse None of these have worked: self.navigationItem.backBarButtonItem?.title = "...
Harebell asked 12/2, 2015 at 6:55

7

Solved

I am trying to add a custom view on right of UINavigationBar. What I tried is the following, but the view is not showing up! Please help, thanks in advance! let viewOnrightButton = UIView(frame: ...
Salve asked 7/8, 2015 at 10:57

5

Solved

I'm creating a custom view, with a uiimageview as a subview. I'm then using that custom view in my navigation bar as the rightBarButtonItem. This works to display the proper icon in the proper loca...
Coca asked 6/11, 2014 at 8:18

17

Solved

I got the opposite issue from here. By default in iOS7, back swipe gesture of UINavigationController's stack could pop the presented ViewController. Now I just uniformed all the self.navigationItem...

8

In iOS 13 the behavior has changed so that by default when Navigation controller appears the search bar is visible (when UISearchController is assigned to a navigationItem.searchController). Some s...

11

Solved

Is there a straightforward way of overriding the titleView of the current navigation bar item in a navigation bar within a navigation controller? I've tried creating a new UIView and replacing the ...

4

The question is simple, how can I prevent a Large Title Navigation Bar from collapse when a scrollview scrolls down? My navigation must have a large navigation bar at all times... so when a scroll...

4

Solved

Making UI of my app using code only. Can't find how customize couple elements: 1. Button 'Back' now it looks like: and it should looks like: So, how I can get rid of 'Back' text from button ...

37

Solved

Currently the left bar button default value is the title of the view that loaded the current one, in other words the view to be shown when the button is pressed (back button). I want to change the...

8

Solved

It works with import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. ...
Drum asked 13/7, 2016 at 15:0

5

I can add a titleView to my navigationItem very easily in code: UIImageView *navImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"nav_logo"]]; UIView *titleView = [[UIView alloc...
Watercress asked 10/4, 2015 at 22:33

3

Solved

I have a UINavigationController loading in the first tab of a UITabBarController. I'd like add a refresh button on the right side of the UINavigationItem. My dim understanding is that one has to se...

2

I have a UISearchController with searchBar assigned to my view controller's navigation item. All works fine in iOS 13.3. However, in iOS 12.4, the searchBar is missing and appears not have been add...

20

Solved

By default the back button uses as a text on it a title of a viewcontroller. Can I change text on the back button without changing a title of a view controller? I need this because I have a view co...
Alodie asked 7/5, 2009 at 16:9

7

Solved

I apologize I am new to iphone programming. I have created a Master-Detail Iphone application (so Navigation Controller came with the project). I segue to a new view controller I created through a...

8

I want to change the title of backbutton to any name in swift 3.I tried many ways but none of them worked for me. self.navigationItem.backBarButtonItem?.title="Title" self.navigationController?.na...

18

Solved

I have a UIViewController and I'm navigating from my first view controller to second view controller and I want to change the name of the button shown on the navigationcontroller for going back ......

1

As title, is there a way to split long large titles in UINavigationBar? I tried all those methods, working for iOS 11 but none of them seem work to me on iOS 13 How to set multi line Large title ...
Wilding asked 23/9, 2019 at 12:33

4

Solved

I am trying to change font property for UINavigationItem. I've tried using titleTextAttributes but somehow I am only able to change title font. How can I change the font or UINavigationItem ? Fo...
Levo asked 1/3, 2015 at 16:7

© 2022 - 2024 — McMap. All rights reserved.