uinavigationitem

View positioned incorrectly when set to landscape mode

Hello, My iPhone application is navigation-based and contains a lot of portrait-only views and one landscape-only view for viewing images. So I'd like to force this landscape-only view to automatically rotate to lanscape even if device is positioned in portrait mode. So here is what I'w done in that view's controller: // Override to a...

navigationItem.prompt & UIImagePickerController

Is it possible to make calls to navigationItem on a UIImagePickerController? Specifically, the image picker? Below I've linked an image of what I'm trying to achieve ( screen shot taken from another app doing the same thing). Once the user selects an image from the picker the navigationItem.prompt is set and, though I think it might be a...

UINavigationController and adding a badge to rightBarButtonItem

Hi, How can I add a numeric badge to the rightBarButtonItem of a UINavigationController? I saw the same in some shopping cart applications. thanks in advance, ...

Get correct bounds for navigationItem.titleView layoutSubviews

I have a subclass of UIView that I've added to as the titleView of a navigationItem using the following line of code: self.navigationItem.titleView = tempview; Easy enough. That works fine. My problem is that this navigationItem sometimes has the rightBarButton updated (sometimes there is no button, sometimes there is one standard siz...

How to click UIView Button of NavigationBar ?

UIView *leftButtonItemView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 30, 30)]; UIImageView *addButtonEmptyImage = [[UIImageView alloc]init]; [addButtonEmptyImage setImage:[UIImage imageNamed:@"black.png"]]; addButtonEmptyImage.frame = CGRectMake(15,0,20,30); [leftButtonItemView addSubview:addButtonEmptyImage]; [addButtonEmptyIma...

Change UINavigationItem Color to Black

I am looking at example provided by Apple called LocateMe. I am basing my application on similar UI flow. In that example the top bar of the screen is black. Looking in the code and xib file I am not able to figure out how did they get that black bar on the top. When I set up my project exactly like them, I get blue bar. Please help. ...

In IB why can you not add multiple Bar Button Items?

In Interface builder, create a UIView, then a UINavigationBar and then attempt to add multiple UIBarButtomItems to that Navigation Bar. The resulting hierarchy should be: - View - Navigation Bar - Navigation Item (Title) - Bar Button Item - Bar Buttom Item I can never seem to add the second Bar Button Item. I know...

How many UINavigationController objects in a single iPhone application?

I think one of my design problems is that I keep creating navigation objects when I should only have one UINavigationController and a delegate. Is that correct? I not as concerned from a style-preference, but the answer I am looking for is more about the a technical perspective and managing the navigation among several view controllers...

NavigationItem setTitle doesn't work for second level UIViewController

Hello, in my app i have an UITabBarController with UINavigationControllers initialized like this UINavigationController *newsNavigationController = [[UINavigationController alloc] initWithRootViewController: newsViewControler]; newsViewController is an UIViewController. When i press the button in the tabbar to show the navigation ite...

iPhone: Setting Navigation Bar Title

Hey all. I'm still pretty new to iPhone development, and I'm having a bit of trouble figuring out how to change the title of my Navigation Bar. On another question on this site somebody recommended using : viewController.title = @"title text"; but that isn't working for me...Do I need to add a UINavigationController to accomplish th...

UINavigationItem title label set width?

In my UIViewController i set my title dynamically so i do not know the length of the string that will be shown in the navigation bar and because of that i have the current situation: is there any way to set the width of the label that displays the title in the navigation bar? or should i think of a with, compare the text length to it a...

customView on left button of UINavigationBar

Hi, guys! I'm trying to implement UINavigationBar with custom controls. So, I've added UIView on left side of UINavigationBar and trying to add controls to that UIView with following code: UIView *view = navigationController.navigationItem.leftBarButtonItem.customView; UIButton *button = [[UIButton alloc] initWithFrame:view.frame]; [bu...

How do I (temporarily) disable Navigation in my view when modal dialog exists?

I have a standard UITableView with a UINavigation bar at the top with the standard back button, etc. I have a button that pops up a "modal dialog" box, which is a view that sits on top of and almost obscures (but doesn't quite) the view underneath. Problem is, the buttons (including the "back" nav button) are still visible and thus tou...

Iphone custom Navigation Bar Button with SystemButtonImage

Hey guys, I'm working with custom navigationBarButtons so I can give them a different tint-color thant the navigation Bar. But I can't see a way to get them to show a systemButton (Like the symbol for reloading). I guess these are private. Does anyone of you have matching symbols/images I can use? ...

UINavigationBar multi-line title

Is there a straightforward way of overriding the titleView of the current navigation bar item in a navigation bar within a navigation controller? I've tried creating a new UIView and replacing the titleView property of topView with my own UIVIew with no success. Basically, I want a multi-line title for the navigation bar title. Any sugg...

What is the default fontsize, fontname and shadow for titles in Navigation Bar?

I'm trying to have a button on the self.navigationItem.rightButton that toggles a segmented control that is placed in self.navgivationItem.titleView .. this will however remove the title that is first set by self.title when the navbar is created .. I dont know if my approach is bad but I figured I could rotate between a UILabel and the S...

UISegmentedControl with custom prev/next buttons

Hey, I am trying to reach the following result here I know how to configure the segmented control but I was wondering how to get the same icons ... I tried to do it with photoshop but I just can't manage to achieve the same quality ! I heard there is a possibility to use the "Apple symbols font" available on Mac (which contains thes...

pushViewController using UINavigationItem instead of UINavigationController

Hello, I have implemented a method didSelectRowAtIndexPath that should push another view. I have a code running properly using a navigationController but in this case I am using a navigationItem on a view. How could I trigger a view? Thanx Error log: 2010-03-25 00:09:52.459 TableArchive[1062:207] trigger 2010-03-25 00:09:52.461 TableAr...

iPhone back button an navbar working but not showing..

I have a detail view in a table view. Every thing working ok, and I can go to the detail view and back to the table view. The problem is that the Back button on the navbar is working but i cant see it.. I cant figure why, and what to do.. I need it there. Thanks. ...

iPhone Title and Subtitle in Navigation Bar

Hi there, In my application, I'd like to have the navigation bar display a title and subtitle. To that extent, I added the following code to my view controller: // Replace titleView CGRect headerTitleSubtitleFrame = CGRectMake(0, 0, 200, 44); UIView* _headerTitleSubtitleView = [[[UILabel alloc] initWithFrame:headerTitleSubtitleFra...