iphone - iOS Jump to different view -
i have navigation based app. root view list of items. root view can tap on table cell item's detail view. or can go form view create new item via 'add' button in nav bar.
my question how can jump form view detail view once new object has been created?
i don't want push detail view on top of form view, because want root table view user see's after pushing 'back' nav button form detail view.
i've tried following. pops root view fine, doesn't push detail view after that..
[context save:&error]; [self.navigationcontroller poptorootviewcontrolleranimated:no]; // display detail view goaldetailviewcontroller *detailviewcontroller = [[goaldetailviewcontroller alloc] initwithnibname:@"goaldetailviewcontroller" bundle:nil]; // pass selected object new view controller. detailviewcontroller.goal = goal; [self.navigationcontroller pushviewcontroller:detailviewcontroller animated:yes]; [detailviewcontroller release];
any , direction appreciated :)
cheers!
generally implement add button using view controller displayed modally.
[self presentmodalviewcontroller:modalviewcontroller animated:yes];
meaning appears bottom of screen (see adding contact). when press done in top right can push detail view controller on navigation controller without animating it, making button go original list view.
Comments
Post a Comment