Note that there are some explanatory texts on larger screens.

plurals
  1. POUINavigationController shows blank view
    text
    copied!<p>I am making a simple navigation based application that drills down one level and show a new xib file each time. When I drill down one level my screen shows up blank. I still have the navigation controller at the top with a back button but my view dosent load.</p> <p>Here is my code</p> <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { circle_area *subViewOneController = [[circle_area alloc] init]; UIViewController *tvc = subViewOneController; if (indexPath.row == 0 &amp;&amp; indexPath.section == 0) { [[self navigationController] pushViewController:tvc animated:YES]; } } </code></pre> <p>like I said this returns a blank screen.</p> <p>My updated Code:</p> <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { circle_area *subViewOneController = [[circle_area alloc] init]; UIViewController *tvc = subViewOneController; switch (indexPath.section) { case 0: switch (indexPath.row) { case 0: NSLog(@"section %i special button!", indexPath.section); NSLog(@"row %i special button!", indexPath.row); break; default: break; } break; default: break; } NSLog(@"section %i!", indexPath.section); NSLog(@"row %i!", indexPath.row); NSLog(tvc.view.recursiveDescription); if (indexPath.row == 0 &amp;&amp; indexPath.section == 0) { [[self navigationController] pushViewController:subViewOneController animated:YES]; } [tvc release]; } </code></pre> <p>Last time i left out the switches in the middle, it dosent look like they would effect anything , but i included them this time.</p>
 

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