How to create "swipe through pages"?

Discussion in 'iOS Development' started by johnmabassa, Apr 17, 2009.

  1. johnmabassa

    johnmabassa Member

    Joined:
    Mar 16, 2009
    Messages:
    87
    Likes Received:
    0
    Hi
    I wanted to make an application with a catalog of items, once the user swipes on the view I wanted to load the next view ie view with the details of next item and so on ( it will give a feel of reading a real catalog book) . Is there any tutorial which describes on how to do this?

    -John
  2. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    Use a UIScrollView and set scrolling and paging enabled. The snap points are determined based on the frame of the scroller.

    It's actually super easy. You should be able to see it in the docs for UIScrollView.
  3. johnmabassa

    johnmabassa Member

    Joined:
    Mar 16, 2009
    Messages:
    87
    Likes Received:
    0
    Oh Cool!! thanks for the tip, I have already seen the stuff in UIScrollView doc but was unaware about its use

    I have found a tutorial here Iphone-Noob I am trying to make it work according to my needs not sure how far I can succeed. B/w everywhere even in apple's sample app they are using images for paging, but I want to show some datas too (labels and all)... need to dig in to it.

    -John

    SkyLar- You r the KING sir!!!

Share This Page