mirror of
https://github.com/zhigang1992/ECSlidingViewController.git
synced 2026-04-23 12:56:59 +08:00
Allow under views to modify their frame. fixes #78
This commit is contained in:
@@ -504,8 +504,8 @@ NSString *const ECSlidingViewTopDidReset = @"ECSlidingViewTopDidRese
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:ECSlidingViewUnderLeftWillAppear object:self userInfo:nil];
|
||||
});
|
||||
[self.underRightView removeFromSuperview];
|
||||
[self.view insertSubview:self.underLeftView belowSubview:self.topView];
|
||||
[self updateUnderLeftLayout];
|
||||
[self.view insertSubview:self.underLeftView belowSubview:self.topView];
|
||||
_underLeftShowing = YES;
|
||||
_underRightShowing = NO;
|
||||
}
|
||||
@@ -516,8 +516,8 @@ NSString *const ECSlidingViewTopDidReset = @"ECSlidingViewTopDidRese
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:ECSlidingViewUnderRightWillAppear object:self userInfo:nil];
|
||||
});
|
||||
[self.underLeftView removeFromSuperview];
|
||||
[self.view insertSubview:self.underRightView belowSubview:self.topView];
|
||||
[self updateUnderRightLayout];
|
||||
[self.view insertSubview:self.underRightView belowSubview:self.topView];
|
||||
_underLeftShowing = NO;
|
||||
_underRightShowing = YES;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user