Allow under views to modify their frame. fixes #78

This commit is contained in:
Mike Enriquez
2013-01-23 20:10:33 -05:00
parent ef3574b865
commit f866037725

View File

@@ -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;
}