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...
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...
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...
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...
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...
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...
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...
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....
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...
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...
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...
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...
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...
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...
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:...
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...
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...
is it possible to have a back button in a modal viewController?
...
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 ...
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...