Reputation: 9
I'm new to swift but have android experience. Is there a iOS control similar to the android viewpager? I'm creating an app that has a view controller that contains a large image view and several text fields. The image view covers half the screen or more and the text fields take up the rest of the screen. I need to swipe between images while the text stays in place. What's the best way to implement this? I thought of adding swipe gesture recognizer and changing the image on swipe but is that the best way?
Upvotes: 0
Views: 1059
Reputation: 11
You can use a Pageview controller, if you're using a storyboard.
Upvotes: 0
Reputation: 1269
You can use UIPageControl. It has capability to swipe between pages(ie page with image and text)
Upvotes: 1