Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Ribbit tabbar swipe

How to you enable swipe between the tabs in the Ribbit app?

2 Answers

Marcus,

You would not typically use a tab bar and swipe gesture together. The user is expecting to change tabs using the tab bar items. If you want to include a gesture I would suggest you review Apple's documentation on gestures. There should be a way to programmatically set the selected tab bar view controller. You would set this in the gesture method implementation for the swipe. Try searching for that inquiry on Stackoverflow.com, I have not tried this myself so I do not have a ready answer.

Apple UIGestureRecognizer

Apple UITabBar

OK. Do you recommend another type of view controller then?