SegmentedVC: Notify its child on viewWillAppear/viewDidAppear.

This fixes the room selection in master when playing when doing screen rotation with the splitVC.
This commit is contained in:
manuroe
2015-12-23 11:46:27 +01:00
parent cebcdc472e
commit 3f4d44f330
2 changed files with 12 additions and 8 deletions
@@ -143,6 +143,18 @@
[self createSegmentedViews];
}
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
if (_selectedViewController)
{
// Make iOS invoke child viewWillAppear and viewDidAppear
[_selectedViewController beginAppearanceTransition:YES animated:animated];
[_selectedViewController endAppearanceTransition];
}
}
- (void)createSegmentedViews
{
NSMutableArray* labels = [[NSMutableArray alloc] init];