uinavigationcontroller

How to refer to preceding viewcontroller properties in uinavigationcontroller stack?

How do I refer to the preceding view controller's properties and iboutlets in a uinavigationcontroller stack of views? For instance, say the first screen has a high score uilabel, and the second screen is the game. How would I update this label from the game screen before popping back to it? EDIT Thanks for the answers. I think I wi...

Block-based UIView animation goes into turbo when view is not visible

I'm using the new block-oriented UIView animation methods to create a sliding-and-fading slideshow inspired by the one that shows up on the home screen of the Flickr application. It's all working very nicely, and I'm no longer intimidated by blocks. Where I'm using this is on a page of my app that's inside UINavigationController control...

How to return to the UITableView page from the detail view page iphone sdk

I have a main page set as a UITableView. I have it set so that you can click on a row, then go to a detail page where there is a UIButton (a save button) which I would like to make the app return to the original page. I know that it automatically sets a left bar button item as a return button, but I need to use a UIButton on the main p...

iPhone wizard style navigation with a

Hello all, I am working on an iPhone app that uses a navigation controller, so it has a navigation bar at the top and a toolbar at the bottom. I would like to swap views in and out of the center area of the app -- the area in the center that the docs refer to as the "navigation view". How do I get the frame of that area, and how would...

UINavigationController inside a UITabBarController with several views in the navigation controller

I've got a UINavigationController that has a UITableViewController as it's root view. The UINavigationController is inside a UITabBarController. In the UITableViewController (*viewOne), if I click a cell a the following code runs UIViewController *newView = [[UIViewController alloc] initWithNibName:@"newView" bundle:nil]; [self.navig...

Flipping a UIViewController managed by a UINavigationController hides navigation bar

I'm 2 levels down on a UINavigationContoller having already pushed a few views. Now I'm looking at an image inside one of the pushed view controllers and when I tap an info button in the navigation bar, I want the sub view to flip leaving the nav bar in place. How do I get just the subview (the view that was pushed) to flip? Right now th...

Switch UIViewController in a Tab Bar Controller Type Application

Hi, Pardon the simple question, but I am pulling my hair out trying to get a grip around navigation in the iPhone. So, I have a Tab Bar Controller type application with UITabBar and 3 UITabBarItems. I have the 1st Tab Bar Item loading a kind of "Home Screen/Welcome", on the Home Screen, there is a button. When the user clicks the but...

How to perform action when navigation controller pops a view on iPhone?

I want to do some saving stuff when the user hits the back button on a navigation controller. Is this only possible by implementing - (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated { int index = [[self.navigationController....

Style question: do you set your nav controller for all the child view controllers, even if they're not the top level view that is on the nav stack?

Let's say you have a tab view controller on the navigation controller view stack. (For the sake of argument.) Your tab controller has an array of view controllers for each of its tab views. Your tab controller's navigationController is clearly set to the nav controller (since its view is on the stack.) But would you set the navigationCo...

UIToolbar push view issue

I've created a UIToolbar and added it as a subview of the navigationController. The problem is it doesn't disappear when I do push so I hide it on push but the makes it just disappear which makes it look tacky. I thought about animating it but I am finding it hard for the animation to be exactly like the push and pop animation for the na...

Segmented Control to Swap ViewControllers in a Navigation Controller

Here is the setup of my iPhone App: I have a UITabBarController that has 4 View Controllers (1 UINavigationController & 3 UIViewControllers). Onload my app is defaulted to the UINavigationController, where there is a grouped UITableView which gives two navigation options, when the user hits the first option the relevant UITableViewCont...

Having a UINavigation in a UISplitView

So I was looking at this app http://itunes.apple.com/us/app/pageonce-personal-finance/id285056092?mt=8 (see iPad screenshots) and it appears that they have a uinavigation controller within the Details view of the UISplitView. When I tried to make a UINavigation controller in my Details View, the navigation bar overlaps with the UISplitVi...

Push a view (part of a tabBarController) onto parent's navigationController

I have a root view having a navigation controller. This root view has got links to other subviews (which obviously get pushed onto its navigation controller stack). One of the subviews contains a tab bar controller of its own. This tab bar has three tabs. Each of these tabs is connected to a view. One of these views has to have a link to...

iPhone UINavigationController app design

Trying to wrap my head around how to structure an app around the UINavigationController. It seems to me that most explanations assume that the app always starts off at the root controller and drills down from there, but I'm unclear as to how this fits in with a login/registration step that happens before you get into the app. The struc...

UIPopoverController automatically resizing to max height on pushViewController

I have a popover containing a UINavigationController. I can display the popover fine, and it contains the navController just fine. The navController contains a tableView and when I select an item it creates a new detail view: DeviceDetailViewController *detailViewController = [[[DeviceDetailViewController alloc] initWithNibName:...

Change pop-over contentsize using navigationcontroller

Hi, I want to show a popover with a custom contentsize. I can do it doing like so UINavigationController* popoverContent = [[UINavigationController alloc] init]; UIView* popoverView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 800, 800)]; popoverView.backgroundColor = [UIColor blueColor]; popoverContent.view = popov...

UITabBar view / frame

Hello, I have an app that uses a UINavigationController. On one of the pages, I add a UITabBarController in my viewDidLoad method. Once I'm done initializing and configuring the UITabBarController, what is the appropriate way to make the UITabBarController's contents visible? If I use: [self.view addSubview:self.tabBarController.vie...

can we have back button in a ModalViewController?

is it possible to have a back button in a modal viewController? ...

UINavigationController: Rotating the view of a covered controller

I have UINavigationController with two view controllers in it (C1 covered by C2). At some point the device is rotated. C2 needs to know the size of one of C1's views (C2 is a map for C1's grid and I need to draw the frame in C2's view). The bounds of C1 are updated when C1 is popped, but I need to get the updated bounds at the time of ...

UINavigationController reloading tableview

In my application I am parsing XML to create a UITableView. When a user selects a row it changes the file that it is parsing and reloads the tableview. I want to create a back button so that the user can go back the the previous XML page they were viewing. In short how can I tell the navigation controller to create a back arrow for th...