Skip to main content

iosScroller

Type​

object

Summary​

A native iOS control, UIScrollView, that is used as an overlay on the part of the screen you wish to interact with the iOS scrollbars.

Syntax​

iosScroller

Description​

An iosScroller(UIScrollView) control is created using a control type of "scroller".

Rather than act as a container for other controls the iosScroller is intended to be used as an overlay on the part of the screen you wish to interact with the proper iOS scrollbars. By responding to the various iosScroller messages, you can move LiveCode controls or set the appropriate scroll properties of groups and fields to get a native scrolling effect.

note

For full details of what the UIScrollViewContol is capable of, and background about it see the iOS reference document.

Examples​

mobileControlCreate "scroller", "name list scroller"
mobileControlCreate "scroller"
put the result into sScrollerID
mobileControlSet sScrollerID,"rect", (10,10,100,100)
mobileControlSet sScrollerID, "contentRect", (10,10,100,700)
mobileControlSet sScrollerID, "visible", "true"

function: mobileControlGet, mobileControlTarget

command: mobileControlDelete, mobileControlDo, mobileControlSet, mobileControlCreate

Compatibility and Support​

Introduced

LiveCode 4.5.3

OS

ios

Platforms

mobile

Thank you for your feedback!

Was this page helpful?