mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-22 07:32:14 +02:00
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:
@@ -205,14 +205,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (void)viewWillDisappear:(BOOL)animated
|
||||
{
|
||||
[super viewWillDisappear:animated];
|
||||
|
||||
_selectedRoomId = nil;
|
||||
_selectedRoomSession = nil;
|
||||
}
|
||||
|
||||
- (void) viewDidLayoutSubviews
|
||||
{
|
||||
[super viewDidLayoutSubviews];
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user