title: how to push a uiviewcontroller from uitableview that is a subclass
body: <p>I have a <code>UIViewController</code> in which I am adding a subclass of a <code>UITableView</code> as a subview.</p>
  
  <p>e.g.</p>
  
  <pre><code> @interface ViewController : UIViewController
  
      @interface ItemList : UITableView
  </code></pre>
  
  <p>in <code>ViewController</code> <code>viewDidLoad</code> I create a <code>ItemList</code> (<code>itemList</code>) object and add it to the view of the <code>viewcontroller</code></p>
  
  <pre><code>- (void)viewDidLoad {
   ...
    [self.view addSubview:itemList];
  }
  </code></pre>
  
  <p>in the <code>didSelectRowAtIndexPath</code> of <code>ItemList</code> which is a <code>UITableView</code> I do not have access to the navigation controller so how do I push another <code>viewcontroller</code> on to the <code>navigationcontroller</code>?</p>
  
  <pre><code>@implementation ItemList
  {
   ...
      - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  
          [self.navigationController pushViewController:newViewControllerobject animated:YES];
  
      }
  
  }
  </code></pre>