dcp3450
dcp3450

Reputation: 11187

How can I get a slot machine effect in the IOS SDK with text?

I need to create a list of words then have the words cycle through in a slot machine effect when swiped from top to bottom.

the only issues I'm having problems figuring out is the scrolling text part. UIPICKERVIEW doesn't cycle around (plus I need to only show one option at a time). I've hunted for examples and/or tutorials regarding this but haven't found anything that points me in the right direct.

Anyone know of a tutorial or have suggestions where I can get started or further my research? thanks.

Upvotes: 0

Views: 2235

Answers (1)

Nick Lockwood
Nick Lockwood

Reputation: 41005

You could use iCarousel for this:

https://github.com/nicklockwood/iCarousel

Run the Basic iOS Demo and select the Cylinder carousel type in vertical orientation with wrap on. If that looks like what you want, the documentation will explain how you can set it up in your project.

Upvotes: 2

Related Questions