SloppySwiper icon indicating copy to clipboard operation
SloppySwiper copied to clipboard

Its's awkward with TabBarController.

Open kuldeep13990 opened this issue 7 years ago • 9 comments

In my first Screen there's bottom view with Home, Trending when I push to another view & pop using SloppySwiper my Bottom Home, Trending disappear, actually it's behind tabBar.

1st Screen ========

simulator screen shot 25-may-2017 10 48 26 am

2nd Screen ========= simulator screen shot 25-may-2017 10 48 55 am

can you help to fix this?

thanks in advance.

kuldeep13990 avatar May 25 '17 05:05 kuldeep13990

Hey, can you see if this helps?

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.

fastred avatar May 25 '17 09:05 fastred

@fastred , I add SloppySwiperDelegate protocol and its method but it's not getting called.

kuldeep13990 avatar May 25 '17 09:05 kuldeep13990

Did you set yourself as a delegate on SloppySwiper instance?

fastred avatar May 25 '17 09:05 fastred

@fastred yes I set it like this.

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

kuldeep13990 avatar May 25 '17 10:05 kuldeep13990

No, it's the other way around:

self.myObject = self.swiper.delegate;

fastred avatar May 25 '17 10:05 fastred

@fastred I am not getting how to call it?

what's self.myObject? is it VC, Navigation or anything else?

kuldeep13990 avatar May 25 '17 10:05 kuldeep13990

I don't know how your app is set up. It can be any object that conforms to SloppySwiperDelegate protocol.

fastred avatar May 25 '17 10:05 fastred

@fastred actually I am not getting what you try to tell me, my base controller is navigation controller.

kuldeep13990 avatar May 25 '17 11:05 kuldeep13990

@fastred , how can I fix this TabBar issue? MY ViewController Hierarchy. UINavigationController --> UITabbarController

kuldeep13990 avatar Jun 19 '17 06:06 kuldeep13990