uinavigationcontroller

How are people popping their UINavigationController stacks under a UITabBarController?

I have four UINavigationControllers assigned each to a tab in a UITabBarController. Each UINavigationController manages a UIViewController, which may itself branch out into other UIViewControllers below it hierarchally. My question is, in a case in which a user, under one tab, has navigated to a UIViewController that hierarchally BELOW ...

Remove objects from UINavigationController

I would like to know if there is a way to know which objects [UIViewControllers?] are stored inside [self navigationController] (I'm guessing they are stored there with pushViewController?), and if there is a way to remove such objects. Consider this scenario: 1.- Show "Presentation screen" (a logo) 2.- Wait 2 seconds 3.- Push "Data ...

Where is the TableView loaded in the Navigational-based iPhone App

Using XCode's Navigational-based application project type, where is the code that loads the table view that is there by default? ...

How to set title in the MFMailComposerViewController ?

Hi All, I am trying to set the title of MFMailComposerViewController , which is a subclass of UINavigationController. I am using these following ways : MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; [picker.navigationController navigationItem].title = @"Send Mail"; [[picker navigationItem] setTitl...

Change position of navigationItem.title

Hi, In my ViewDidLoad I try something like that but its not working: UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10,2,60,14)]; label.autoresizingMask = UIViewAutoresisingFlecibleWidth; [self.navigationController.navigationBar addSubview:label]; I want to display a label in the left part of my NavigationBar. Or maybe...

Make UIImageView change its contents when user rotates the iPhone

So I have an app with a tab bar, each bar contains a UINavigationController. When user shakes the device, a UIImageView appears as a subview of the nav controller. But the app has a landscape view as well. If the UIImageView is active in portrait mode and user rotates the device, this code works: - (void)willAnimateRotationToInterfaceOr...

UIViewControllers tripping over each other...

Need some best practice advice here... Navigation based application. Root view is a UITableView where user can drill down to a detail UIViewController (call it VC1). User wants to initiate some task but it may require additional info before it can proceed. If so then VC1 allocs & presents modal VC2 using the "flip" transition holding a ...

Adding UIBarButtonItem to UINav..Controller

i am not sure what i am missing here. I Have a custom UINavigationController and i am trying to add a persistant UIBarButtonItem to the bar. -(void)viewDidLoad { self.navigationBar.barStyle = UIBarStyleBlack; UIBarButtonItem *bbi = [[UIBarButtonItem alloc] initWithTitle:@"Nope..." style:UIBarButtonItemStyleBordered ...

change title of viewcontroller which is on UItabbarcontroller

i have a UItabbacController with 6 tabs. My "More" tab contains 2 UIviewcontrollers. How to change title of one UIViewcontrolleller which will be showing in Morenavigationcontroller. Initially that view controller title is "registration". But after logged in i have to change to "profile". Please help me ..thanks Edit I have only on...

Adding a UINavigationController as a subview of UIView

I'm trying to display a UILabel on top of a UINavigationController. The problem is that when I add the UILabel as a subview of UIWindow it will not automatically rotate since it is not a subview of UIViewController (UIViewController automatically handles updating subviews during rotations). This is the hierarchy I was using: UIWindow ...

I know my title view is a UISegmentedControl, Xcode still warns me...

I have a UINavigationalController of which I've set the titleView to a UISegmentedControl. Later on, if I do something like. [self.navigationItem.titleView setEnabled:NO forSegmentAtIndex:0]; I get a warning saying that UIView may not respond to this message. Of course it does and works fine but how do I properly get rid of the warni...

pushViewController causes memory leak

The Leaks application tells me that the following function is causing a memory leak and I can't figure out why. -(void)viewGameList { GameListController *gameListViewController = [[GameListController alloc] initWithNibName:@"GameListController" bundle:nil]; gameListViewController.rootController = self; [self.navigationController pushVie...

How to navigate clicking row to another UITableView ?

Hi. I am trying to show detailed UItable view when clicking on row. I used - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // Navigation logic may go here. Create and push another view controller. // AnotherViewController *anotherViewController = [[AnotherViewController alloc] initWithNibNa...

How to tell when back button is pressed in a UINavigationControllerStack

Is it possible to check when the back button is pressed in a UINavigationController stack? I've tried adding a action and target to self.navigationItem.backBarButtonItem to no avail. Anyone have any solutions? ...

How can I create a NavigationController in a view-based application?

How should I go about creating a NavigationController for use in a view-based application? ...

Change appearance of toolbar from a UINavigationController

Hi there I did add a toolbar to my UINavigationController and that works as it should. But I don't see any possibility to change the appearance(like other backgroundcolor etc.) of the toolbar. The docs shows me that an UINavigationController has a toolbar property but it is readonly. Do I have to do an custom UIView or is there any ot...

viewWillAppear-related problem.

Hi! Without giving you all my code examples, I'll made this quick. Has this ever happened to one of you to get viewWillAppear called only the first time it shows up? I have this problem with all my view. For example: When my app starts, I get to the StartView which is a main menu. (viewWillAppear gets called) then I press on one butt...

How to link UINavigationController to multiple ViewController?

i have 2 tabbars each bar have own ViewController and UINavigationController. so i create 1 instance UINavigationController from my Appdelegate, how can i link them with my UINavigationController? Notice i try: in IB it can link only 1 to 1 ...

Loading data from a dictionary of dictionaries into an array in Objective C for an iphone app

I have a UINavigationController consisting of a tableview I want to load some data into. I have a dictionary plist containing Dictionaries for each Train Line which in turn have dictionaries for each station with the relevant information along with one string lineName. I need to collect the station Names keys and add them to an array to...

UINavigationController custom buttons animation problem

Hi all, I'm trying to use UINavigationController with custom buttons, it looks fine and buttons are exactly as I need but i've got a problem with animation transition. When I push a new viewController that has the same buttons of the previous one, the right button appears as left button for a very short time. Is there any way to keep bu...