iOS - picking from a scrolling list

Graham Samuel livfoss at mac.com
Wed Apr 4 12:31:33 EDT 2012


In an iOS app I'm developing I would like to use a scrolling text list where the user can drag the whole list up and down (i.e. scroll the list) but can also select a line by touching it.  This type of interaction is permitted in iOS: a simple example is the index of Apple's own Contacts app.

I have looked at the latest iOS notes for LC5.5 (Scroller Control - UIScrollView) and I can't understand how the textual list (like an ordinary LC scrolling field) would come in to the scroller; I'm also just beginning to use MobGUI to introduce some native controls, and that has a scroller object too. It is  complex and consists of a group into which it is possible to introduce such an LC field, but in that case it is sensitive to touches, but not to dragging/scrolling - I tried setting the parameter 'delay touches' but it didn't seem to change anything. 

Obviously I have missed some underlying concept here. The LC iOS doc says that a scroller isn't a container for other controls, but I don't know what that means. It seems a gnomic pronouncement rather on the lines of "Light is not a thing" or “Die Welt ist alles, was der Fall ist.” Sounds terrific, but what does it actually mean?

I also tried reading the UIScrollView section of Apple's documentation. It's promising in a way (it mentions the need to do the kind of thing I'm talking about) but it doesn't help me enough to allow me to proceed.

Does anyone know how to do this? I have asked MobGUI support, but I don't know how reactive they are.

TIA

Graham



More information about the use-livecode mailing list