uinavigationitem

Animating UINavigationBar

I want to slide the right button and the title in and out (instead of having things just appear and disappear). How can I go about doing this? ...

Adjusting navigationItem.titleView's frame?

I noticed that the titleView's position depends on the rightbarbutton title. How can I set the frame of the titleView to be in the center instead? I've tried setting titleView.frame, but to no avail. Here's the code: UIButton *titleLabel = [UIButton buttonWithType:UIButtonTypeCustom]; [titleLabel setTitle:@"Right Eye" forState:UICont...

iPod detail view icon

So I'm having the hardest time figuring out what this thing is called, or where I can find it. I have an app where I would like to use this icon, or button or whatever it is, but I can't find it in Apple's system supplied buttons. Here is a picture of the icon I'm looking for (it's in the red circle): I know that Pandora uses this sa...

rightBarButtonItem info button, no space to the right

Hey. I have a UIViewController set up to display an info-button on the right in its UINavigationItem like this: UIButton *infoButton = [UIButton buttonWithType:UIButtonTypeInfoLight]; [infoButton addTarget:self action:@selector(toggleAboutView) forControlEvents:UIControlEventTouchUpInside]; self.navigationItem.rightBarButtonItem = [[[...

UIBarButtonItem doesn't highlight when tapped if in a Toolbar?

I need two buttons on the left side of a nav bar. The only way I've figured out how to do that is by first putting them into a UIToolbar and then setting the leftBarButtonItem to that. If I do this it works as normal (you can see it highlight when tapped): UIBarButtonItem* myBtn = [[UIBarButtonItem alloc] initWithTitle:@"Button" style:...

How can I get a full-sized UINavigationBar titleView

I am trying to add a custom control as the titleView in a UINavigationBar. When I do so, despite setting the frame and the properties that would normally assume full width, I get this: The bright blue can be ignored as it is where I am hiding my custom control. The issue is the narrow strips of navbar at the ends of the bar. How can ...

Add button on UINavigationController

Hi, i'm trying to develop my first iphone apps. I'm using a navigationController with three views: main->first view ->second view. I would like to add a button only on the first view, i tried like this: self.navigationItem.rightBarButtonItem = self.editButtonItem; but nothing appear. If I add the button on the main view it appears afte...

Setting the tintColor for 2 buttons in an iPhone app Nav-Bar

I've created a UINavigationBar in IB. But don't see any way to set the button colors... so I do this with code: for(id subView in navBar.subviews) if( [subView isKindOfClass:[UIButton class]] ) { UIBarButtonItem *b = (UIBarButtonItem *)subView; if( [b.title isEqualToString:@"Cancel"] ) [b setTintColor:[UICo...

How to associate a method with this button?

I have a navigation bar button that displays both image and text. This is the code: UIImage *saveImage = [UIImage imageNamed:@"star.png"]; UIButton *saveButton = [UIButton buttonWithType:UIButtonTypeCustom]; [saveButton setBackgroundImage:saveImage forState:UIControlStateNormal]; [saveButton setTitle:@"Save" forState:UIControlStateNor...

UINavigationItem Back Button touch area too large

Hi guys, On this following screenshot, if I click on "v" from "Available Kiosks" this is launching the action of the back button... (not with the second "a"). I don't understand why, I've nothing special in my code (this is the default backbutton handled by the navigation controller). I also have the same bug with another application...

Edit Button on Navigation Controller

I have a navigation controller in my app and on its root view controller i have an Edit button as the rightBarButtonItem. I have a second table view which is pushed when a cell is tapped on the root view controller. The leftBarButtonItem becomes the Back button. I would like an Edit button as well, where can i put it that would make t...

Adding a refresh UIBarButtonItem to a UINavigationController loaded from a NIB

Hi all, I'm a complete iphone/obj-c noob, and this site has proven invaluable for finding my way around the platform. 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 set properties like tit...

UINavigationController does not scale my main UITableView, if the NavigationBar titleitem has a height > 44 px

I have a UITabbarController where I show a UITableViewController. Now I have set a special titleView to replace content of the standard Navigation bar: self.navigationItem.titleView = titleView; My titleView is not only 44 px of height (as seems to be the standard), but it has a 70px height. This is properly displayed. The only problem...