uinavigationitem

How to add UIAccessibilityTraitHeader properly?

江枫思渺然 提交于 2021-02-11 07:10:07
问题 I am working with objective-c/swift and interface builder trying to make my application navigation accessible. I cannot figure out how to get my header to work when you use the accessibility rotor and select "headings." My heading title is set in Interface Builder (IB). Within IB its set in a Navigation Bar > UINavigationItem > Title attribute. I think what I want to do is find a way to add the UIAccessibilityTraitHeader to the UINavigationItem , but you cant do that in IB. I also tried

Change font of prompt in UINavigationController

吃可爱长大的小学妹 提交于 2021-02-08 08:41:05
问题 can someone help me out in changing font, size and color in prompt string on my NavigationController? In the attachment, I want to modify "Consulenze" string. Thank you everybody Edit: I already tried the solution found here but no results. 回答1: You can try following ways: 1) In viewDidLoad of your ViewController add this lines: self.navigationController?.navigationBar.tintColor = UIColor.white let navigationTitleFont = UIFont(name: "Avenir", size: 20)! self.navigationController?

How to control multiple navigation controller in an iOS project

荒凉一梦 提交于 2021-02-08 06:40:22
问题 The structure of my project is as follows. Initially when the user is registering or trying to login the initial navigation controller should work and after successfully registering / loggin in the user should be taken to first tab of tab bar controller. But the issue that i am facing is that i am getting 2 navigation bars in the tab bar view. Can someone guide me how to implement this in the correct way. Thanks in advance 回答1: Make one of the two navigation controllers from tabbar to initial

How to control multiple navigation controller in an iOS project

对着背影说爱祢 提交于 2021-02-08 06:39:20
问题 The structure of my project is as follows. Initially when the user is registering or trying to login the initial navigation controller should work and after successfully registering / loggin in the user should be taken to first tab of tab bar controller. But the issue that i am facing is that i am getting 2 navigation bars in the tab bar view. Can someone guide me how to implement this in the correct way. Thanks in advance 回答1: Make one of the two navigation controllers from tabbar to initial

Change color and back button title of Navigation Bar from Swift 3 code

浪尽此生 提交于 2020-12-12 11:48:12
问题 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 title, keeping '<' system icon there? And how I can change colors of back button and title of navigation bar? 回答1: try self.navigationController?.navigationBar.tintColor = UIColor.white 回答2: Try: override func viewDidLoad(){ //any other initial stuffs //for the bar navigationController?.navigationBar

Customize navigation bar by adding two labels instead of title in Swift

半世苍凉 提交于 2020-05-24 12:01:05
问题 I am trying to add two labels in the place where the title is shown in navigation bar, but I am struggling to do so. It would be very nice if I could achieve this with storyboard but as I can see I cannot do it. As I have seen I need to use navigationItem but I do not know how exactly to do that. If anyone have any example or if anyone could explain me more specifically how to do so would be wonderful. And I need to mention that I am completely unfamiliar with Obj-C, so any help would need to

Add UIBarButtonItem to navigation Bar in Xamarin IOS

百般思念 提交于 2020-02-21 12:53:34
问题 How to add custom UIBarButtonItem to navigationbar rightside. public UIBarButtonItem btn_Cart {get; set;} public DetailedController (){ string buttonTitle = "One"; btn_Cart = new UIBarButtonItem (buttonTitle, UIBarButtonItemStyle.Bordered, null); btn_Cart.Clicked += (s, e) => { new UIAlertView ("click!", "btnOne clicked", null, "OK", null).Show (); }; } public override void ViewDidLoad (){ base.ViewDidLoad (); // Added btn_Cart to RightSide Of Naviation Bar. this.NavigationItem

Add UIBarButtonItem to navigation Bar in Xamarin IOS

一个人想着一个人 提交于 2020-02-21 12:52:14
问题 How to add custom UIBarButtonItem to navigationbar rightside. public UIBarButtonItem btn_Cart {get; set;} public DetailedController (){ string buttonTitle = "One"; btn_Cart = new UIBarButtonItem (buttonTitle, UIBarButtonItemStyle.Bordered, null); btn_Cart.Clicked += (s, e) => { new UIAlertView ("click!", "btnOne clicked", null, "OK", null).Show (); }; } public override void ViewDidLoad (){ base.ViewDidLoad (); // Added btn_Cart to RightSide Of Naviation Bar. this.NavigationItem

Add UIBarButtonItem to navigation Bar in Xamarin IOS

╄→гoц情女王★ 提交于 2020-02-21 12:48:52
问题 How to add custom UIBarButtonItem to navigationbar rightside. public UIBarButtonItem btn_Cart {get; set;} public DetailedController (){ string buttonTitle = "One"; btn_Cart = new UIBarButtonItem (buttonTitle, UIBarButtonItemStyle.Bordered, null); btn_Cart.Clicked += (s, e) => { new UIAlertView ("click!", "btnOne clicked", null, "OK", null).Show (); }; } public override void ViewDidLoad (){ base.ViewDidLoad (); // Added btn_Cart to RightSide Of Naviation Bar. this.NavigationItem