Here's a `ChatViewController.m` that receives message which is then displayed in a `tableView`.
Now when the sender of message changes , I want to give option to the user to switch to the new message ( `alert view` ) . If the user clicks switch , how to display the message?

This is how the message is received and displayed.

```
 -(void)recvdMsg:(NSDictionary *)msg
{
  NSString *currentUser = [msg objectForKey:@"sender"];
  NSString *match = @"@";
  NSString *preAt ;
  NSScanner *scanner = [NSScanner scannerWithString:currentUser];
  [scanner scanUpToString:match intoString:&preAt];

  if (self.name == preAt)  //same sender 
  {
    NSMutableDictionary *newMsg=[[NSMutableDictionary alloc]init];
    NSString *m = [msg objectForKey:@"msg"];
   [newMsg setObject:m forKey:@"message"];
   [newMsg setObject:converID forKey:@"conversationID"];
   [newMsg setObject:@"1" forKey:@"FromTo"];
   NSDate *today=[NSDate date];

   // Convert string to date object
   NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
   [dateFormat setDateFormat:@"MM-dd-yyyy HH:mm:ss"];
   NSString *dt=[dateFormat stringFromDate:today];
   [newMsg setObject:dt forKey:@"timeStamp"];
   [self AddMessage:newMsg]; // adding to database.
   NSBubbleData *heyBubble = [NSBubbleData dataWithText:m date:[NSDate date] type:BubbleTypeSomeoneElse];
   [bubbleData addObject:heyBubble];
   [bbltblView reloadData];
   [bbltblView scrollBubbleViewToBottomAnimated:YES];
}
else     //message from new sender
{   
    UIAlertView *alertView = [[UIAlertView alloc]initWithTitle:@"New Message from " message:preAt delegate:self cancelButtonTitle:@"OK" otherButtonTitles:@"Switch", nil];
}

}

 - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
    if (buttonIndex == 0)  // cancel button clicked
{
    return;
}
else {

    // switch button is clicked....How to go from here.....how would i reload data?
}
}

```