Note that there are some explanatory texts on larger screens.

plurals
  1. POTableView help pushing a custom view
    primarykey
    data
    text
    <p>So I am trying to simple traverse to the next level of a table view by doing this:</p> <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.row == 1) { FiltersController *aFiltersCont = [[FiltersController alloc] init]; aFiltersCont.displayedFilters = [appDelegate.groupedBusiness allKeys]; aFiltersCont.currentLevel = self.currentLevel + 1; [self.navigationController pushViewController:self animated:YES]; } } </code></pre> <p>is there any reason why this would not be pushing the controller? I had a similar problem before, but solved it by displaying the view modally. However, this time, this is in a popover and needs to slide to the next screen inside that popover. Any Ideas? Thanks in advance.</p> <p>OK I am going to put some more source up here to try and help...</p> <p>Inside the main view controller I have this code to make the popover from a button:</p> <pre><code> // Create and configure the filters controller. FiltersController *aFiltersController = [[FiltersController alloc] initWithStyle:UITableViewStylePlain]; self.filtersController = aFiltersController; filtersController.appDelegate = self.appDelegate; UINavigationController *filtersNavController = [[UINavigationController alloc] initWithRootViewController:filtersController]; UIPopoverController *filtersPopover = [[UIPopoverController alloc] initWithContentViewController:filtersNavController]; self.filtersPopoverController = filtersPopover; filtersPopoverController.delegate = self; </code></pre> <p>and then I have the code I first posted in my filtersController class. Does that help at all? </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload