- (void)layoutSubviews
{
[super layoutSubviews];
_tabBar.frame = (CGRect) {
.origin.x = _tabBar.frame.origin.x,
.origin.y = (self.tabBarPosition == AKTabBarPositionTop) ? 0.0
: CGRectGetHeight(self.bounds) - CGRectGetHeight(_tabBar.bounds),
.size = _tabBar.frame.size
};
_contentView.frame = (CGRect) {
.origin.x = 0,
.origin.y = (self.tabBarPosition == AKTabBarPositionTop) ? CGRectGetMaxY(_tabBar.frame) : 0,
.size.width = CGRectGetWidth(self.bounds),
.size.height = CGRectGetHeight(self.bounds) - ((!_isTabBarHidding) ? CGRectGetHeight(_tabBar.bounds) : 0)
};
NSLog(@"%f", _contentView.frame.size.height);
}
diff --git a/AKTabBarController/AKTabBarController.m b/AKTabBarController/AKTabBarController.m
index e8226ac..9853490 100755
--- a/AKTabBarController/AKTabBarController.m
+++ b/AKTabBarController/AKTabBarController.m
@@ -251,6 +251,9 @@ typedef enum {
tabBar.hidden = NO;
tabBar.transform = CGAffineTransformMakeTranslation(CGRectGetWidth(self.view.bounds) * directionVector, 0);
// when the tabbarview is resized we can see the view behind
+ CGRect tmpTabBarView = tabBarView.contentView.frame;
+ tmpTabBarView.size.height = CGRectGetHeight(tabBarView.bounds) - CGRectGetHeight(tabBar.bounds);
+ tabBarView.contentView.frame = tmpTabBarView;
[UIView animateWithDuration:((animated) ? kPushAnimationDuration : 0) animations:^{
tabBar.transform = CGAffineTransformIdentity;
сохраняете в файлик fix.patch, заходите в репу компонента и
git apply /path/to/fix.patch
ну или руками добавить