popviewcontroller

Is there a way to pop a view controller when the user switches tabs?

Is there a way to pop the view controller when the user switches tabs? I have a tabbar with a navigationController on one of the tabs. The user selects a row in a table which pushes a viewController onto the navigationController containing the table. Then the user switches tabs to a new view. In the new view he hits a button that b...

popViewControllerAnimated doesn't update info iPhone SDK

When I try to pop a view controller, it doesnt update info for the previous view. Example: I have a cell that displays text in a label in View1. When you click on the cell it goes to View2 (for example) When I choose an option in View2, popViewControllerAnimated is used to go back to View1, however, I want the label to now be updated wit...

UITableViewController not redrawing new cell text label after popViewControllerAnimated

I have a problemetic UITableViewController fails to redraw an updated cell after a child view is removed. Here's what's happening. After changing data in a child view, the parent view controller reloads the source data array and runs [tableView reloadData] via a PostNotification. After this triggers, I use popViewControllerAnimated to ...

UINavigationController navigation stack problems in Landscape Mode

I have a iPhone application that I am currently converting to a Universal Binary to work with the iPad. I have successfully implemented everything I need in terms of layout so that full landscape functionality is now supported in my app (previously I primarily used portrait mode to display content). But, I have one strange problem, and ...

UITabBarController rotation problem with popViewControllerAnimated and selectedIndex (iPhone SDK)

Hi! This is a very important auto rotate issue and easy to reproduce. My application has a UITabBarController. Each tab is a UINavigationController. Auto rotation is handled with normal calls to shouldAutorotateToInterfaceOrientation and didRotateFromInterfaceOrientation. The interface rotates normally until I call UIViewController.p...

popView from UITabBarController inside UINavigationController

Hi, I'm building an application based on the Utility template from Xcode, to which I have added some more views. My application structure would be as follows: MainView (the app menu) Flip-side view (a calculator) UINavigationController Settings view viewDiDLoad: UITabBarController - Tab1 view (options) - Tab2 vie...

popViewController does not autorotate back to allowed orientation

I have two UIViewControllers, "A" and "B", where "A" overrides the shouldAutorotateToInterfaceOrientation to return YES for UIInterfaceOrientationPortrait, and "B" returns YES for all orientations. In my example "A" is the root navigation view controller, and I then use pushViewController for "B". After that I rotate the device into land...

popViewControllerAnimated from back buttton

How can I popview from back button pressed, i passed the below code from previous view controller. Thanks self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStyleBordered target:nil action:nil]; ...

Freeze call to popViewControllerAnimated on iPhone OS

Hi there ;) I have an app with tableViews, and on some of them, the cells dislays an accessoryDetailDisclosureButton that pushes a DetailViewController. On this DetailViewController, the user can change some data. I show a "Save" Button to explicitly save the data. BUT (yes, there's always a but), let's say that the user changes some da...

Animating UINavigationController's 'back' button

I have a custom button on a view controller in the navigation controller's heirarchy, that when pressed, pops the visible view controller. I want to use UIView's transform property to animate the closing of the view controller. It works, but if I use `popViewControllerAnimated:YES', the default left slide of the animation is still ther...

IPhone Development - popViewControllerAnimated doesn't update tableView

Hi guys, I'm trying to auto-update a tableView after call popViewControllerAnimated from a view. I've ready this post, but it's not exactly what I'm looking for: http://stackoverflow.com/questions/1892713/popviewcontrolleranimated-doesnt-update-info-iphone-sdk Any ideas? Thanks in advance, Claudio ...

Can I "curl down" a page on popViewControllerAnimated?

I can "curl up" a view controller with this code: [UIView beginAnimations:@"animation" context:nil]; [self.navigationController pushViewController:page animated:NO]; [UIView setAnimationDuration:1]; [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.navigationController.view cache:NO]; [UIView commitAnimations]...

popViewController not working when called from UIActionSheet

I encountered a strange problem when trying to go back to the previous view using an UIActionSheet. This is my code (stripped down to show the relevant part): - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { if (buttonIndex == 0) { /* Doing some stuff here */ [self.navigati...

Automatically FirstView controller calls second view controller in viewdidAppear.

Hi friends, I am using 2 views in navigation controller in a tab bar. In that First view controller in navigation should automatically call the second view controller without showing First view controller ( by pushing pushviewcontroller on viewdidAppear). The issue is when i click on the tab bar on first time it goes to Second view...

Storing UITextField contents before view pops

I am sure this is in the Apple documentation or must have been answered somewhere on this forum, since it seems so basic, but I could not find it nor a particularly elegant solution myself. What I have is a UIViewController that pushes an editing view on its navigation stack. The editing view has a bunch of UITextFields in it. If one ...