I have a list of places with a right navigation bar item linking to a filter page. I want to set paramters on the filter page and push back to the placelist at the push of a button while taking the data with me and refreshing the previous view. I am currently doing this action when the button is pressed:
-(IBAction)save:(id)sender
{
PlaceList *placelist = [[PlaceList alloc] initWithNibName:@"PlaceList" bundle:nil];
placelist.searchTxt = self.searchTxt.text;
placelist.type = self.type;
[self.navigationController pushViewController:placelist animated:YES];
[placelist release];
}
However this creates a new table in the navigation controller and leaves a back button to the filter eg. Home -> Placelist->Filter->PlaceList->Filter its a never ending loop when all I want is Home -> Placelist -> Filter but data can be pushed backwards. Thanks.