Note that there are some explanatory texts on larger screens.

plurals
  1. POPush in a new table view
    primarykey
    data
    text
    <p>So I am aware this question has been asked many many times, but it doesn't seem to be working for me. I've tried everything. ViewController.h</p> <pre><code>@interface ViewController : UIViewController &lt;UITableViewDelegate, UITableViewDataSource&gt; { NSMutableArray *tableData; } @property (nonatomic, retain) NSMutableArray *tableData; @end </code></pre> <p>ViewController.m</p> <pre><code>-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [tableView deselectRowAtIndexPath:indexPath animated:YES]; SubTableView *secondView = [[SubTableView alloc] initWithNibName:@"SubTableView" bundle:nil]; if ([[tableData objectAtIndex:indexPath.row] isEqual:@"Campus"]) { secondView.selected = 1; //[subTable setTitle:[tableData objectAtIndex:indexPath.row]]; } if ([[tableData objectAtIndex:indexPath.row] isEqualToString:@"School"]) { secondView.selected = 2; } if ([[tableData objectAtIndex:indexPath.row] isEqualToString:@"Admissions"]) { secondView.selected = 3; //[subTable setTitle:[tableData objectAtIndex:indexPath.row]]; } if ([[tableData objectAtIndex:indexPath.row] isEqualToString:@"Boarding"]) { secondView.selected = 4; } if ([[tableData objectAtIndex:indexPath.row] isEqualToString:@"Academics"]) { secondView.selected = 4; } if ([[tableData objectAtIndex:indexPath.row] isEqualToString:@"Athletics"]) { secondView.selected = 5; } if ([[tableData objectAtIndex:indexPath.row] isEqualToString:@"Jobs"]) { secondView.selected = 6; } if ([[tableData objectAtIndex:indexPath.row] isEqualToString:@"Donate"]) { secondView.selected = 7; } [self.navigationController pushViewController:secondView animated:YES]; } </code></pre> <p>I have a NavigationController set up, although I don't know if it's properly linked in Storyboard. The second view controller SubTableView I have set up in StoryBoard with it's own .h and .m controllers. And I have the identifier as "SubTableView" But it refuses to push that view. The only possible thing I can think of is not having the navigationController linked properly. But I haven't been able to find anything that I can use on it. <br> If I put a breakpoint when </p> <pre><code>[self.navigationController pushViewController:secondView animated:YES]; </code></pre> <p>It will hit it and stop. But it will not push the new view over.</p>
    singulars
    1. This table or related slice is empty.
    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.
    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