mirror of
https://github.com/zhigang1992/ECSlidingViewController.git
synced 2026-03-29 00:18:36 +08:00
Set hidden instead of reordering subviews
This commit is contained in:
@@ -312,16 +312,20 @@
|
||||
{
|
||||
[self addTopViewSnapshot];
|
||||
[self.topView addGestureRecognizer:self.resetTapGesture];
|
||||
[self.view bringSubviewToFront:self.underLeftView];
|
||||
[self.view bringSubviewToFront:self.topView];
|
||||
if (self.underRightViewController) {
|
||||
self.underRightView.hidden = YES;
|
||||
}
|
||||
self.underLeftView.hidden = NO;
|
||||
}
|
||||
|
||||
- (void)underRightWillAppear
|
||||
{
|
||||
[self addTopViewSnapshot];
|
||||
[self.topView addGestureRecognizer:self.resetTapGesture];
|
||||
[self.view bringSubviewToFront:self.underRightView];
|
||||
[self.view bringSubviewToFront:self.topView];
|
||||
if (self.underLeftViewController) {
|
||||
self.underLeftView.hidden = YES;
|
||||
}
|
||||
self.underRightView.hidden = NO;
|
||||
}
|
||||
|
||||
- (void)topDidReset
|
||||
|
||||
Reference in New Issue
Block a user