fastred/SloppySwiper

UITableView goes behind UITabbarController.

Opened this issue · 2 comments

When I push to 1 ViewController and go back to that view My TableView goes behind TabBarController,
and when i comment this code in next view

self.swiper = [[SloppySwiper alloc] initWithNavigationController:self.navigationController];
self.swiper.delegate = self;

it works fine.

I am facing this issue from more than 1 week, can you guys pls help me out to fix this issue?

If this doesn't help:

If you're having problems with a UINavigationController inside of a UITabBarController that is causing the UITabBar to pop out of view during the animation process, you'll want to implement the SloppySwiperDelegate protocol and return NO for calls to -(BOOL)sloppySwiperShouldAnimateTabBar:(SloppySwiper *)swiper.

then SloppySwiper probably won't work with UITabBarController. I'm sorry.

I have solved this issue .

Comment following line in SSWAnimator.m class

CGFloat toViewControllerXTranslation = - CGRectGetWidth([transitionContext containerView].bounds) * 0.3f;
toViewController.view.bounds = [transitionContext containerView].bounds;
toViewController.view.center = [transitionContext containerView].center;
toViewController.view.transform = CGAffineTransformMakeTranslation(toViewControllerXTranslation, 0);