Hi,
I wanted to subclass UINavigationBar (to set a custom background image & text color) and use that for all the navigation bars in my app. Looking at the API docs for UINavigationController, it looks like navigationBar is read-only:
@property(nonatomic, readonly) UINavigationBar *navigationBar
Is there a way to actually use a cu...
Hi
I have a UITableViewController where I added a "editButtonItem" in the navigation bar :
self.navigationItem.leftBarButtonItem = self.editButtonItem;
No magic here, but I try to define the color (background and foreground/textcolor) of this button.
I read in the Apple forum somewhere that the button changes the color if I change t...
Is there an existing API for this kind of separated controls for the UINavigationbar seen in Mail.app? More specifically this up and down arrows shown in the picture.
...
hi,
in which way i can add programmatically an uiswitch as navigation items or btw on my navigation bar?
i'm going crazy :D
...
is it possible how to expand the width of navigation bar in iphone?
...
I've built the tab bar application in IB, with three tabs. The third tab happily displays a UIWebview where you can browse. The only thing missing is a back button, as not all web pages supply such a link.
I need a navigation bar hooked up properly to the correct classes. I'm still a bit unsure about exactly how the hierarchy should loo...
Hi there,
is there a simple way (Delegation? Overwriting?) do globally customize all the back buttons that are being used in the navigationBar throughout my whole app?
Best
–f
...
Hi there,
I'm overwriting UINavigationController to replace the default navigationBar property with an instance of my own subclass of UINavigationBar. So I tried something like
_navigationBar = [[SBNavigationBar alloc] init];
in my -initWithRootViewController:. But that didn't work out as I expected it. There's still the default navi...
I have an app where I've pushed two items onto the navigation bar. The top item, which ends up as a 'back' button, should have the function to jump all the way back to the start page, which is a list of web news. The other one simply displays a logo. The boss wants a navigation bar look and feel but with a simple function, so the user ca...
I have a navigation based application that have a uinavigataioncontroller containing uitableviewcontrollers. I want to add buttons to the UINavigationbar of the uinavigataioncontroller, usually I write code to add these buttons, something like this:
UIBarButtonItem *saveButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBar...
I have a view with an Edit button on the right and a Back button on the left. When the user hits the Edit to enter the edit mode, I replace the back button with an Add button.
All works great up to this point.
I can't figure out how to display the Back button back again after the Edit button is hit to leave edit mode.
...
I tried to solve this in so many ways but always failed.
Basically what I need is a NavigationController with a customized NavigationBar (different height and smaller back Button) which I already achieved.
This creats two problems. If I use the default NavigationBar of the NavigationController, I have a smaller NavigationBar but the v...
I'm using a UILabel for the titleView of a navigation bar (I'm making simple in-app web browser). It works fine, except that when I present a modal view controller, the titleView shifts from the center of the navbar to the far left (underneath the back button). I've tested in 3.0 and up. Here is relevant code:
- (void)viewDidLoad {
...
Hi Guys,
I am working on an iPhone application. Application has a navigation bar at the top. I have two views say "View1" and "View2". When you push "View2" view controller the navigation bar shows a back button with the title of the "View1" so you can go back to view1.
Now my question is which event is fired when you click that button...
I am having tremendous trouble adding a title to a nav bar. heres the code.
detailViewController.title = [NSString stringWithFormat:@"%@", [editArray objectAtIndex:row]];
it keeps saying expecting '=' 'asm' or 'attribute' before '.' token
Please Help!!! :(
...
The main thing that I'd like to change is the tint of the UINavigationBar that appears in the "More" item of a UITabBar. I've done this for other NavigationControllers in normal items, but I haven't found where the one in the More item is defined.
...
I have a UITableViewController that I have specified as a UISearchBarDelegate. Up until now, I had programmatically added the UISearchBar to the headerView of the table, and there were no problems.
I began to run out of screen real estate, so I decided to kill my normal UINavigationController title (which was text), and added the follo...
Since a command like navigationController.navigationItem.leftBarButtonItem.width returns a zero, how can I get the size of the button? It is one of the preset UIBarButtonSystemItem's.
...
Hey
I've added a button the my navigation bar like so:
UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:@"Edit" style:UIBarButtonItemStylePlain target:self action:@selector(methodtocall:)];
self.navigationItem.rightBarButtonItem = anotherButton;
[anotherButton release];
However when I press this I ge...
Hi,
I'm trying to change Back Button tittle in a navigation controller in the following way:
In the parent controller I put this in vieDidLoad:
self.title = @"Calendars";
self.navigationItem.backBarButtonItem.title = @"Previous";
But this controller is in the stack since I initialized the app:
-(void)applicationDidFinishLaunching:...