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...
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...
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,
...
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...
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...
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 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...
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...
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...
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...
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...
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...
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...
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?
...
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...
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...
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...
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...
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.
...
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...