loading nav controller from tabbarview controller on iphone
<p>my app is based on tabbar controller
now in my default view i am showing a viewController and lets say it has <strong>Button A</strong>, when user press A it should <strong>load a my tableviewController but nothing is happening?</strong>?</p>

<pre><code>-(IBAction)promo:(id)sender
{
  aRoot= [[tableViewController alloc] initWithNibName:@"tableViewController" bundle:[NSBundle mainBundle]];
  [self.navigationController pushViewController:aRoot animated:YES];

}
</code></pre>

<p>but its not loading anything no error even???</p>

<p>/////////// UPDATE</p>

<p>i did this </p>

<pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    





 Promo *aPromo = [[Promo alloc] initWithNibName:nil bundle:nil];//button A is deifned on this VC
 // then...
 aNav = [[UINavigationController alloc] initWithRootViewController:aPromo];
// [pageOne release];
</code></pre>

<p>and in promoviewController</p>

<pre><code>-(IBAction)promo:(id)sender
{atab= [[TableViewController alloc] initWithNibName:@"TableViewController" bundle:nil];

 //TableViewController *atab1 = [[TableViewController alloc]initWithNibName:@"TableViewController" bundle:[NSBundle mainBundle]];


 [self.navigationController pushViewController:atab animated:YES];



}
</code></pre>
