Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-27-2011, 04:16 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2011
Posts: 18
sregorcinimod is on a distinguished road
Default UIScrollview help

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
sregorcinimod is offline   Reply With Quote
Old 03-27-2011, 04:32 PM   #2 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

How are you making them scroll now?
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 03-27-2011, 07:57 PM   #3 (permalink)
Registered Member
 
Join Date: Mar 2011
Posts: 18
sregorcinimod is on a distinguished road
Default

Quote:
Originally Posted by BrianSlick View Post
How are you making them scroll now?
By having ScrollEnabled = YES
and then adding them as subviews of the main view
sregorcinimod is offline   Reply With Quote
Old 03-27-2011, 07:58 PM   #4 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

No, that allows them to scroll. How are you making them scroll?

And/or, if I'm not understanding the scenario correctly, how have you linked them?
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 03-28-2011, 12:17 AM   #5 (permalink)
Registered Member
 
Join Date: Mar 2011
Posts: 18
sregorcinimod is on a distinguished road
Default

I'm making through scroll through user interaction.

In terms of linking them I add the UIScrollViews in Interface builder and structure them such that they make a heirarchy. This is because the images sit on top of each other and therefore have to be in a certain order


Last edited by sregorcinimod; 03-28-2011 at 12:46 AM.
sregorcinimod is offline   Reply With Quote
Old 03-28-2011, 06:24 AM   #6 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Oh, so you're really only scrolling one of them.

You're going to have to use the scroll view delegate methods. When one scrolls by 1 pixel, move the next by, say, 2 pixels, and so on.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Reply

Bookmarks

Tags
background, delegate, speed, uiscrollview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 369
12 members and 357 guests
condor304, dansparrow, Domele, dre, dreamdash3, ilmman, LezB44, michelle, Sami Gh, shagor012, thephotographer, tinamm64
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,119
Posts: 402,896
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:35 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0