Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Its's awkward with TabBarController. #21

Open
kuldeep13990 opened this issue May 25, 2017 · 9 comments
Open

Its's awkward with TabBarController. #21

kuldeep13990 opened this issue May 25, 2017 · 9 comments

Comments

@kuldeep13990
Copy link

kuldeep13990 commented May 25, 2017

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.

@fastred
Copy link
Owner

fastred commented May 25, 2017

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.

@kuldeep13990
Copy link
Author

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

@fastred
Copy link
Owner

fastred commented May 25, 2017

Did you set yourself as a delegate on SloppySwiper instance?

@kuldeep13990
Copy link
Author

kuldeep13990 commented May 25, 2017

@fastred yes I set it like this.

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

@fastred
Copy link
Owner

fastred commented May 25, 2017

No, it's the other way around:

self.myObject = self.swiper.delegate;

@kuldeep13990
Copy link
Author

@fastred I am not getting how to call it?

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

@fastred
Copy link
Owner

fastred commented May 25, 2017

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

@kuldeep13990
Copy link
Author

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

@kuldeep13990
Copy link
Author

kuldeep13990 commented Jun 19, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants