native.textFields do not seem to get inserted into groups with build 243 i tried it on build 109 and it gets inserted into the group
here is the code im using just incase im doing something worng
you have to build for x-code sim for it to run and download the scrollView code from here then try to scroll up and down
http://developer.anscamobile.com/code/scroll-content
[blockcode]
local scrollView = require(“scrollView”)
local scrollView = scrollView.new{ top = 0, bottom = 0 }
local gpCI = display.newGroup()
scrollView:insert(gpCI)
local imgTest = display.newRect(0,0,240,960)
imgTest.rotation = 10
imgTest:setFillColor( 235, 10, 157 )
gpCI:insert(imgTest)
function onFirstName( event )
if (“began” == event.phase ) then
elseif (“submitted” == event.phase ) then
native.setKeyboardFocus( lastNameField )
end
end
function onLastName( event )
if (“began” == event.phase ) then
elseif (“submitted” == event.phase ) then
native.setKeyboardFocus( firstNameField )
end
end
firstNameField = native.newTextField( 56, 79, 208, 32, onFirstName )
firstNameField.font = native.newFont( native.systemFontBold, 24 )
firstNameField.text = “”
firstNameField.inputType = “default”
firstNameField:setTextColor( 0, 0, 0 )
gpCI:insert(1, firstNameField)
lastNameField = native.newTextField( 56, 127, 208, 32, onLastName )
lastNameField.font = native.newFont( native.systemFontBold, 24 )
lastNameField.text = “”
lastNameField.inputType = “default”
lastNameField:setTextColor( 0, 0, 0 )
gpCI:insert(2, lastNameField)
[/blockcode] [import]uid: 7911 topic_id: 4595 reply_id: 304595[/import]