fastred / SloppySwiper

UINavigationController delegate that allows swipe back gesture to be started from anywhere on the screen (not just from the edge).
MIT License
806 stars 107 forks source link

UITableView goes behind UITabbarController. #23

Open kuldeep13990 opened 7 years ago

kuldeep13990 commented 7 years ago

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?

fastred commented 7 years ago

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.

kishan44 commented 7 years ago

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);