Gasim
Gasim

Reputation: 7991

what do I need to use to change controller when sliding left?

I want to create a touch control, where I slide left and the view scrolls in a paged mode (like in Photos app where you slide between photos) but instead of a view in a current controller coming in, I want a new controller to come in with it's own view. What control should I use to build something like that?

Upvotes: 0

Views: 62

Answers (1)

Muhammad Waqas Bhati
Muhammad Waqas Bhati

Reputation: 2805

You can use UIPageViewController to navigate between different ViewController like a scrollView

You can follow this tutorial

1-http://www.appcoda.com/uipageviewcontroller-storyboard-tutorial/

2-http://www.appcoda.com/uipageviewcontroller-tutorial-intro/

3-http://www.makemegeek.com/uipageviewcontroller-example-ios/

hope it will help you

Upvotes: 6

Related Questions