I understanf the first part of your problem as you want to initialize the object of your class with the user-specific details .
You have made the flow pretty complex , had it been a navigation-based , it would have been a lot easier for you.Now here , as per you requirement you have to initialize your class on each row clicked so you will have to make your "chatting interface " as a subview over your rootview of UINavigation or viewcontroller.view of the same and then in the viewDidLoad method of your rootView you can initialize your "chatting interface " everytime.
What i can infer from your other problem is that you want a back button to actually go to next page in UInavigationcontroller which is not pragmatic and doesn't make sense.Simply Push the nextview on to the navigationController.
From our comments,
I saw the website and it is not a back button it has been customized to look as a back button.Apple doesn't allow such things and you may risk your app.Anyways you can do it this way :-
UIImage *image= [UIImage imageNamed:@"yourImage.png"]; //Here image shoulb be similar to backButton
UIButton *yourButton= [UIButton buttonWithType:UIButtonTypeCustom];
[yourButton setBackgroundImage:image forState:UIControlStateNormal];
yourButton.font = [UIFont boldSystemFontOfSize:10];
yourButton.frame = CGRectMake(0, 0, image.size.width, image.size.height);
[yourButton addTarget:self action:@selector(yourTarget) forControlEvents:UIControlEventTouchUpInside]; self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:yourButton];
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…