-7

let jsonArray = [["name":"Trend deals","location":"india","description":"welcome","price":"3345","dealstype":"BEST","type":"KITCHEN","imageurl":""],["name":"Best deals","location":"india","description":"welcome","price":"Q78","dealstype":"BEST","type":"KITCHEN1","imageurl":""],["name":"Not Best deals","location":"india","description":"welcome","price":"Q78","dealstype":"BEST","type":"KITCHEN3","imageurl":""]] as Array>

This is my data ,so count is 3. I need to display the data in a such a way that .... ["name":"Trend deals","location":"india","description":"welcome","price":"3345","dealstype":"BEST","type":"KITCHEN","imageurl":""] should display in the view then scrolling i need to display the second data then scrolling i need to display the 3th data in the view.I need to use pagecontrol also.How to implement.

1 Answers1

0

You need to implement scroll view delegate and page control. Just Google for it.

Few references:

How to create a Scroll View with a page control using swift?

https://www.ioscreator.com/tutorials/changing-screens-with-uipagecontrol

Creating a tutorial for my iOS app with page control

Rupendra
  • 89
  • 1
  • 2
  • i know .....and i got the uipageviewcontroller but i want to implement in the mvvm method.In that i cannot able to implement – avaharper222 Apr 12 '18 at 06:14