title: Push a new view controller on tableview cell tap
body: <p>I have one header file which is </p>
  
  <pre><code>@interface DemoFirstViewController : UIViewController &lt;UITableViewDelegate, UITableViewDataSource&gt;
  
  @end
  </code></pre>
  
  <p>In the source file of this header file i have declare this method </p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  
      AnotherViewController *anotherViewController=[[AnotherViewController alloc]   initWithNibName:@"AnotherViewController" bundle:nil];
      [self.navigationController pushViewController:anotherViewController animated:YES];
  
      NSLog(@"didSelectRowAtIndexPath: row=%d", indexPath.row);
  
  }
  </code></pre>
  
  <p>and anotherViewController file is </p>
  
  <pre><code>@interface AnotherViewController : UIViewController
  {
      IBOutlet UILabel *message;
  }
  
  @property (nonatomic , retain) UILabel *message;
  
  @end
  </code></pre>
  
  <p>I am doing this all using Xib file. not storyboard.</p>
  
  <p>This is <code>tabbased Application</code>. and two viewcontroller are already declared in Appdelegate</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
  
      UIViewController *viewController1 = [[DemoFirstViewController alloc] initWithNibName:@"DemoFirstViewController" bundle:nil];
      UIViewController *viewController2 = [[DemoSecondViewController alloc] initWithNibName:@"DemoSecondViewController" bundle:nil];
      self.tabBarController = [[UITabBarController alloc] init];
      self.tabBarController.viewControllers = @[viewController1, viewController2];
      self.window.rootViewController = self.tabBarController;
      [self.window makeKeyAndVisible];
      return YES;
  
  }
  </code></pre>
  
  <p>bt on tapping of table cell, anotherViewcontroller is not comming. Plz reply as soon as possible.</p>