Reputation: 1482
I have the following layout, using storyboards:
Everything works great until I try to push a new view controller on "People NearbyVC"
I'm using
ChatView *chatView = [[ChatView alloc] initWith:@"test"];
[self.navigationController pushViewController:chatView animated:YES];
The code is fine and the view controller is presented as expected.
The problem comes right after the appearance of the new VC and TabBar controller is moved out of screen:
It should look like this (and it does, until I push that new VC) - screenshot3
This is a very strange behaviour and I have no idea what causes this and how to fix it. Any tip or help would be useful.
Upvotes: 0
Views: 378
Reputation: 26
I try it using storyboard,it's ok.I think your problem is to push chatView onto navigationController.You can creat a prototype cell in the tableView which is in the NavigationControll, and make a push segue between the prototype table cell and that chatView . Have a nice day.
Upvotes: 1