Questions tagged [navigationitem]

80 questions
1
vote
0 answers

How to make nav drawer item background color span the whole drawer and become unclickable?

Below is a screenshot and files for my nav drawer. Currently, the yellow background on "Features - Day of Event" and the others only spans the title when it should span the entire nav drawer view with the text left-aligned instead of in line with…
1
vote
1 answer

Swift UNavigationItem button display menu labels

I'm new in Swift and I would like to how to do this. When I touch rightBarButtonItem button I would like the following to appear: The Test and Test2 text should display in the same view controller. If I don't touch rightBarButtonItem the Test and…
1
vote
1 answer

Align the self.navigationItem.backBarButtonItem to left of the device in iOS

What I tried was, add an image to UIBarButtonItem and set that UIBarButtonItem as the default backBarButtonItem. Below is my code; UIImage *backNavImg = [[UIImage imageNamed:@"backward_navigation_arrow"]…
AnujAroshA
  • 4,623
  • 8
  • 56
  • 99
1
vote
1 answer

Navigation icon toast hint

Android toolbar menu items show toast hints on long press. The toast message is defined in xml with "title" attribute:
Dmitrii G.
  • 895
  • 1
  • 7
  • 21
1
vote
1 answer

Hide and show back button in navigationBar

I have these two methods: func showSpinner() { let spinner = UIActivityIndicatorView(activityIndicatorStyle: .White) spinner.startAnimating() self.navigationItem.leftBarButtonItem = UIBarButtonItem(customView: spinner) …
ChikabuZ
  • 10,031
  • 5
  • 63
  • 86
1
vote
1 answer

Android: How to change the selected item in Navigation Drawer onBackPressed()?

I implemented a NavigationDrawer and when i press on a NavigationDrawer item a Fragment Transaction happens and the item's background changes to indicate that it's selected. Now when i press the Hardware Back Button to go to the previous Fragment…
Fadi Obaji
  • 1,454
  • 4
  • 27
  • 57
1
vote
0 answers

View Controller is push by navigation controller show under current view?

In AppDelegate.m : I added the tabbar : [self.window addSubview:self.tabBarController.view]; In TrangchuViewController.m : I wanted add a navigation controller on top to view thongtinCanhanViewController. - (void)…
Ryan Tran
  • 467
  • 6
  • 16
1
vote
2 answers

Can't Set Title of NavigationBar

self.title = @"title"; self.navigationController.title = @"title"; self.navigationItem.title = @"title"; self.navigationController.NavigationItem.title = @"title"; Nothing changes the Title. What can I do?
DoHi7
  • 21
  • 7
1
vote
1 answer

Add a button to navigation item in code

How do i add a button to the right of a navigation item in a view controller?
tarnfeld
  • 25,992
  • 41
  • 111
  • 146
1
vote
3 answers

why does my navigationItem.titleView not start in middle of my navigation bar?

I am trying to set the title of my navigation item by setting a UILabel to it. The code essentially works, but my is problem that when the View loads, for a second or so the UILabel starts at the position defined by the CGRectMake rather that at the…
1
vote
1 answer

navigationItem not showing

I am currently writing an iOS-APP based on mostly UITableViewControllers. The hierarchy is the following: AppDelegate -> UINavigationController -> UITableViewController [A] -(didSelectRow: presentModalVC)-> UITabBarController -(contains…
agrafix
  • 765
  • 1
  • 5
  • 15
1
vote
1 answer

iOS navigationItem title with custom font loses vertical centering

Is there any text attribute like line-height or any other feature that would help with vertical centering of a UINavigationItem title? After setting custom font it is higher than standard one.
cyborg86pl
  • 2,597
  • 2
  • 26
  • 43
1
vote
2 answers

How to change Title of UIBarButtonItem when button is clicked - iPhone

I'm trying to change the title of UIBarButtonItem when button is clicked. Here's the code that I have... but it doesn't work. UIBarButtonItem * btnleft1 = [[UIBarButtonItem alloc] initWithTitle:@"Test2" …
MichaelD
  • 31
  • 1
  • 6
0
votes
1 answer

UITableViewController NavigationItem button issues

I'm having issues in setting navigation buttons on my UITableViewController! this controller is inside a UINavigationController. I've following view controller: @interface SettingsViewController : UITableViewController
Krishna
  • 231
  • 4
  • 13
0
votes
3 answers

what is the title's font of navigationItem?

I would like use navigationItem.title's font, because I insert a Button in titleView and this button have "ABC", but this "ABC" must Specified a font. I need this font same to navigationItem title's font of system; what do I do it?
namunaka
  • 3
  • 2