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...
Aurthur asked 11/12, 2019 at 23:10
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.
Cronyism asked 24/10, 2017 at 11:31
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 ...
Toddtoddie asked 28/7, 2016 at 2:7
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...
Potation asked 22/1, 2016 at 8:55
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...
Semang asked 20/8, 2019 at 21:8
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 ...
Felixfeliza asked 11/3, 2010 at 3:39
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...
Knothole asked 18/6, 2018 at 18:9
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 ...
Subshrub asked 4/12, 2016 at 13:9
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...
Motley asked 19/9, 2009 at 19:41
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...
Megaera asked 19/10, 2010 at 19:36
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...
Jardena asked 23/1, 2020 at 18:45
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...
Ridglee asked 5/6, 2012 at 3:1
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...
Conjunct asked 9/11, 2016 at 10:33
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 ......
Sherburn asked 26/3, 2012 at 11:51
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
1 Next >
© 2022 - 2024 — McMap. All rights reserved.