title: UIViewController appears as Black screen when doing programmatically
body: <p>UIViewController appears as black screen when handling programmtically</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  
  NSString *user = (NSString *) [self.friends objectAtIndex:indexPath.row];
  ChatViewController *chatController = [[ChatViewController alloc] initWithUser:user];
  [self presentModalViewController:chatController animated:YES];
  
  }
  </code></pre>
  
  <p>This below given code is in the chatviewcontroller</p>
  
  <pre><code> - (id) initWithUser:(NSString *) userName {
  if (self = [super init]) {
      chatWithUser = userName;   
  }
  return self;
  }
  </code></pre>
  
  <p>and when i do it using storyboard segue then only tableview row gets selected but doesn't shows ChatViewController</p>
  
  <pre><code>else if ([segue.identifier isEqualToString:@"showChatView"]) {
      ChatViewController *viewController  = (ChatViewController *)segue.destinationViewController;
        viewController.chatWithUser = friends;
  }
  </code></pre>
  
  <p>If anyone can figure out what i m doing wrong. Will appreciate so much.</p>
  
  <p>Thanks for help though.</p>