help: scrollview into storyboard

Hi all,

I am bit stuck with allowing scrollview into my storyboard’s scene.

In particular, storyboard uses screenGroup to manage all its object in each scene:
[lua]
local screenGroup = self.view

screenGroup:insert(background)[/lua]
But scrollview uses the same insert method:

[lua]local scrollView = scrollView.new{ top=topBoundary, bottom=bottomBoundary }

scrollView:insert(1, scrollBackground)[/lua]
So my question is: how do I encapsulate scrollView into my storyboard’s screenGroup?
Thanks in advance for your help. Best Regards. [import]uid: 67641 topic_id: 20956 reply_id: 320956[/import]

That’s easy. You can put a group inside a group.

Insert the things you need in the scroll view into the scrollview group, then put the entire scrollview group into the storyboard group.
[import]uid: 19626 topic_id: 20956 reply_id: 82745[/import]

You can also do

[code]
screengroup:insert(1, scrollBackground) [import]uid: 84637 topic_id: 20956 reply_id: 82761[/import]

Thanks both, I was doing the other way round… that was putting screenGroup into scrollView, which is clearly wrong!

Have a nice day!! [import]uid: 67641 topic_id: 20956 reply_id: 82767[/import]