[iOS] Multi Line Field issues

Bruce Baker brucebaker11 at mac.com
Tue Dec 20 12:00:57 EST 2011


I have run into a few issues with the Multi Line Field for iOS. Has anyone managed to get the 'new' scrollToVisibleRange working? I have tried dozens of ways to get it to work with no success.

It seems that the best place to put the scrollToVisibleRange would be in the inputReturnKey since once that is hit I then would like to scroll to the new line. But that doesn't cover wrapped lines. So the next logical place seems the inputTextChanged but I can't seem to get it to work there. I then tried resizing the field since part of it is showing above the keyboard and if I bring the bottom of the field up to just below the keyboard then the field automatically will scroll to the next line. I thought I would raise the fields bottom during editing and then set the height back on inputEndEditing. But that doesn't work either.



Here are some of the problems I have run into:

scrollToVisibleRange: isn't clear where to put this or how to get it too work on a multi line field where part of the field is blocked by the keyboard.

inputReturnKey does not trigger when hitting the Return Key when using a MultiLineField yet it is declared in the release notes for MultiLineFields as a valid message that is received?

It does not appear that iPhoneControlSet "ID", "rect", 200,200,200,200 works during runtime after the first time. It can be set once right after creating the multilinefield but then it can't be changed again during inputBeginEditing or inputTextChanged etc.?




Tom McGrath at work....




More information about the Use-livecode mailing list