Questions tagged [uinavigationitem]

on iOS, the UINavigationItem class encapsulates information about a navigation item pushed on a UINavigationBar object’s stack

UINavigationItem is a part of the UIKit framework and is available from iOS 2 and later. The UINavigationItem class encapsulates information about a navigation item pushed on a UINavigationBar object’s stack

UINavigationItem Class Reference

1143 questions
0
votes
1 answer

iOS: Navigation bar item disappearing and reappearing

Trying to add and remove navigation Bar Items on the navigation bar, some bar items disappear. When I run the codes below at viewDidLoad, they work fine. -(void) resetNavigationBarRearrangeMode { NSArray*rightBarItems = [[NSArray alloc]…
tipsywacky
  • 3,374
  • 5
  • 43
  • 75
0
votes
1 answer

Looking for a drop down navigation menu

I am trying to make a drop down navigation menu for an iPhone client to my website. The menu type that I am searching for is the one used in Facebook's iPhone client. It is found in the upper left-hand corner of Facebook's application after you sign…
davetw12
  • 1,815
  • 2
  • 20
  • 27
0
votes
1 answer

can not name the title for navigation bar after adding segmentcontroller to titleView

My view right now is containing 3 uitabbaritem. At the first tab, I am adding a segmentcontroller to self.navigationItem.titleView by following -(void)viewDidLoad { // Enable 'segmentControl' on navigation bar self.navigationItem.titleView …
tranvutuan
  • 6,089
  • 8
  • 47
  • 83
0
votes
3 answers

self.navigationItem available in any class?

If a viewController is in a navigationStack(probably top of stack), does it automatically possess self.navigationItem? I keep seeing self.navigationItem and self.navigationController without much context in questions and tutorials, and wonder where…
eugene
  • 39,839
  • 68
  • 255
  • 489
0
votes
1 answer

UINavigationItem modal how to inherit color from presentingviewcontroller

I have a modal view controller, and I want its navigation bar (I think UINavigationItem) to inherit the color of the navigation bar of its presenting view controller. How do I do this?
mlstudent
  • 948
  • 2
  • 15
  • 30
0
votes
1 answer

UIBarButtonItem not being added to navigation

I am unable to set the left button in my navigation bar. Anyone have an idea why the code below is not displaying a button? UIBarButtonItem *barButton = [[UIBarButtonItem alloc] initWithTitle:@"my left button" style:UIBarButtonItemStyleBordered…
joe
  • 16,988
  • 36
  • 94
  • 131
0
votes
1 answer

UIEdgeInsets resizing Back button

I'm trying to customize the back button of a UINavigationBar using the iOS 5 UIAppearance API. The image I want to use is this: https://www.dropbox.com/s/ce83rw0e3vs9dwo/bt-back.png and the code is the following: // Customize back button items…
Pierluigi Cifani
  • 224
  • 2
  • 14
0
votes
2 answers

uibarbutton item not showing uibutton

i saw many posts in SO on uibutton in navigation controller and on uibutton not working but my problem is uibutton is appearing in view intead on navigation controller here is my code showMeButton = [UIButton…
0
votes
1 answer

Issue with removeTarget leftBarButtonItem - may not respond

I'm trying to swop the action for a leftBarButtonItem - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UIBarButtonItem *theButton = self.navigationItem.leftBarButtonItem; // 'UIBarButtonItem'…
JulianB
  • 1,686
  • 1
  • 19
  • 31
0
votes
1 answer

More performant to use Text or UIImage for title in UINavigationItem

I've seen code which uses an image with text as a title using UIImageView as well as adding a titleView (UIView) with UILabel. Would the UILabel version be a little bit more efficient than using an image?
Howard Spear
  • 551
  • 1
  • 5
  • 14
0
votes
2 answers

changing the Navigation Bar controller text

I am trying to change the navigation bar controller text (by default this is the title of the previous controller) in other words in need to change the "back" text in this image . I tried several possibilities but none of them capture the new text…
0
votes
3 answers

using the default Navigation bar text

I am using a storyboard and developping an iPhone app and using a navigation Controller. when I implemented it I noticed that it is using the name of the view instead of using the default "back" text , is there a way to force it to use "back"…
0
votes
2 answers

Hide BackButton in UINavigation bar

i am pushing a View om RootView controller ,i get the navigation bar with back button which is navigate to rootviewcontoller,but i don't need this back button.i pout this code in the viewcontoller to hide the back button…
stackiphone
  • 1,245
  • 3
  • 19
  • 41
0
votes
1 answer

iOS - RIghtbarbutton exists but not visible

I'm trying to add a rightBarButtonItem to the navigationitem.But whatever I do I can not see the button on the navigation bar. If I NSLog for self.navigationItem.title I get the right title.And also if I NSLog the rightBarButtonItem I get the…
Mikayil Abdullayev
  • 12,117
  • 26
  • 122
  • 206
0
votes
2 answers

Write OWN UINavigationController? Similar functionality, not subclassing

I need to have a custom view controller with the same functionality as the UINavigationController. Why I don't use the standard one is because I really need a custom NavigationBar (more than 2 buttons, title and subtitle, different height, etc…