Infinite scrolling with CALayer
Infinite scrolling with CALayer
- Subject: Infinite scrolling with CALayer
- From: "Fabrizio Guglielmino" <email@hidden>
- Date: Wed, 22 Oct 2008 09:52:18 +0200
Hi all,
I'm trying to simulate an endless vertical scrolling using CALayer.
In my first test I made a simple texture (it's a street asphalt) and I
create a CALayer with this texture as content.
I made also a socond layer with same content attached on top to the main
layer, simply incrementing the position
of the main layer I can made a scrolldown simulating a running steet see
from top.
My question is : how can I made an infinite scroll? It's possible to change
the role of superlayer removing it when it's offscreen, adding a new
layer and promoting the old layer to super?
It's the way I'm using the right way? I've excluded CAScrollLayer because I
need to fine control the speed of scrolling in function of many parameters.
Many thanks
Fabrizio
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden