UIScrollview help

Discussion in 'iOS Programming' started by sregorcinimod, Mar 27, 2011.

  1. sregorcinimod macrumors newbie

    Mar 8, 2011
    Firstly I am not a developer by trade, just a BA/Consultant filling a gap.

    I am looking to create multiple scrollviews to scroll as a background, but at different speeds. Just like the background of a level in angry birds.

    I have managed to get all the scrollviews to appear and scroll together but now i need to scroll them at different speeds I know I need to use the UIScrollViewDelegate commands in order to interact and register when a scroll has occured, but have been hitting my head against a brick wall.

    Is there anyone out there that has a sample project with different scrollviews scrollinf at different speeds, so that i can look at it and break down so that I can understand the mechanics of the scrollviews and delegate etc.

    Thanks in advance
  2. psonice macrumors 6502a

    Jul 22, 2005
    A scrollview is meant for scrolling in user interfaces, where you can't fit all of your content on screen. NOT game programming. Not to say it might not work with some serious hackery, but there's a high chance of failure / horrible slow jerky scrolling ;)

    If you're looking to do something like this, you should really start looking at openGL.
  3. sregorcinimod thread starter macrumors newbie

    Mar 8, 2011
    solved it

    hadn't added <UIScrolLViewDelegate> to the header file

Share This Page