iOS Card Scrolling with Bounce

Mark Schonewille m.schonewille at
Tue Sep 13 17:13:24 EDT 2011

Hi Chris,

Make a group of all objects on the card, including the objects that are off-screen. Set the rect of the group to the card rect and use a UIScrollView to scroll the group. Look at the iOS release notes for more info. This info still isn't in the regular documentation.

Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
KvK: 50277553

Send me a friend request on Facebook if you like

On 13 sep 2011, at 22:37, Nonsanity wrote:

> I've been away from my iOS projects in LC over the summer, but I'm about to
> jump back in again. And to start, I wanted to ask again something I was
> looking for long ago, and that's a way to scroll a card so that it imitates
> the existing scroll behaviors in typical iOS apps.
> For example, open up Settings on an iPhone and flick to scroll up and down
> the page, bouncing and stretching at the ends. I would think that in LC,
> this would be dun by laying out all the elements on a
> longer-than-the-window-is-tall card, then using scrolling it with swipes.
> But can the exact same motion behavior be implemented in LC? How much of a
> unique HACK does it have to be? Or is there a built-in scroll modifier we
> can tap into, so that every LC iOS app can scroll exactly the same as other
> apps do?
> You see, if I can't give the end user the exact same experience of scrolling
> through a long screen that they are already very used to... It's better not
> to even try. If that's the case, then LiveCode has failed me. Can't have
> that! :)
> I checked the revOnline example and library stacks, but didn't see anything
> for this.
> ~ Chris Innanen
> ~ Nonsanity

More information about the Use-livecode mailing list