Questions tagged [navigationitem]

80 questions
289
votes
32 answers

iPhone Navigation Bar Title text color

It seems the iOS Navigation Bar title color is white by default. Is there a way to change it to a different color? I am aware of the navigationItem.titleView approach using an image. Since my design skills are limited and I failed to get the…
Roby
77
votes
15 answers

iOS 11 navigationItem.titleView Width Not Set

Seeing a behavior on iOS11 with a navigationItem.titleView where the width of the titleView is not the full width of the screen. I have a custom view that I set as the titleView. Previous to iOS11 the view would fill the navigation bar area. But iOS…
gngrwzrd
  • 5,902
  • 4
  • 43
  • 56
9
votes
5 answers

Black bar appears under navigation bar

There are several similar questions which got no answers but were describe vaguely. I have reduced the problem into a very thin application, and added detailed screenshots. I would highly appreciate a solution for this! The only involved code is one…
ishahak
  • 6,585
  • 5
  • 38
  • 56
7
votes
2 answers

Button added to navigation Item always shows in blue colour

created UIBarButtonItem added Power Image to it. barBtnPower = new UIBarButtonItem (UIImage.FromBundle ("Images/Power@2x.png") , UIBarButtonItemStyle.Plain , (sender, args) => { }); button added to navigation Item on…
KkMIW
  • 1,092
  • 1
  • 17
  • 27
7
votes
4 answers

Customizing the BackBarButtonItem

I'm trying to customize the backBarButtonItem with a custom image (the text 'back' is included in that image), here is the current result: https://i.stack.imgur.com/jn9u4.png Does anyone know why this might be happening? Here is my code on…
5
votes
5 answers

Change ViewController's Back Button Image for all screens

I have this below code that changes the back button image on next screen. I have 30 screens in my app and i want back button to be same across all 30 screens. Is it possible that I don't copy paste this code on all 30 screens and just write it once…
Sategroup
  • 955
  • 13
  • 29
4
votes
2 answers

Navigation item's title disappeared when clicked

I have created drawer with navigation view. I have Navigation item's on which I am calling other activities. The issue is when I click on navigation item, the other activity launches,and if I come back to main activity and open a drawer the clicked…
user3623979
3
votes
1 answer

iOS Navigation Item issues of extra padding top on landscape mode

There is extra padding top when my app in landscape. Here is my code when create navigation bar programmatically. Any advice to remove the padding top when in landscape mode? let navigationBar = UINavigationBar(frame: CGRectMake(0, 0,…
kaneyip
  • 1,237
  • 1
  • 17
  • 21
3
votes
0 answers

A proper size for navigationItem.titleView

I would like to have a custom titleView that fills the useful spaces besides the BarButtonItems. @property (strong, nonatomic) IBOutlet UIView *testView; in ViewDidLoad _testView.frame=CGRectMake(0, 0,…
Orange
  • 349
  • 3
  • 13
3
votes
0 answers

UIBarButtonItems' customView doesn't animate with resizing

I'm trying to add a simple animation when I resize the UISearchBar from the leftBarButtonItem. For some reason, the resize doesn't animate, although the searchBar's size is modified. However, if I try to modify the searchBar's alpha it does…
Durican Radu
  • 1,327
  • 11
  • 12
3
votes
1 answer

disable bar button text color changes to white?

Given below is image of my navigation bar, where right bar button is disable now. but when i disable it its text changes to white color. i don't want white color. Any solution of this. First image when Edit button is enabled. Other when Edit button…
Gagan Joshi
  • 3,347
  • 2
  • 21
  • 32
3
votes
1 answer

Keep selected NavigationItem trough orientation changes

I implemented for Android 3+ devices navigation of views trough ActionBar NavigationMode (DROP_DOWN_LIST). getActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_LIST); SpinnerAdapter mSpinnerAdapter =…
Marcos Vasconcelos
  • 18,136
  • 30
  • 106
  • 167
3
votes
1 answer

Navigation bar. Right bar button doesn't animate

Im adding a right bar button to my navigation bar. It appears and it works fine. The problem is that it´s not animated. I mean, when I move to other views by clicking in some row, it just suddenly pops out and you can see the new view moving behind…
3
votes
0 answers

Trying to set titleView for navigationItem works on simulator but not on actual device

I'm trying to set a titleView in the NavigationBar using the following code. It shows correctly on the simulator but it doesn't on the device. This is my code: UIImage *imageTitle = [UIImage imageNamed: @"tittle_SW.png"]; UIImageView…
Renexandro
  • 464
  • 5
  • 13
2
votes
0 answers

self.navigationItem setHidesBackButton:YES acting inconsistent

I am trying to hide the navigation bar 'back' button during an animation. When the animation completes, the button re-appears. my code is as follows: - (void) animateResults { [self hideNavBarButtons]; [self animatePlayer1]; [self…
edhnb
  • 2,122
  • 3
  • 24
  • 38
1
2 3 4 5 6