iOS Question Scrollview bug??

Nicolás Cieri

Active Member
Licensed User
I am using a scrollview in which I insert controls dynamically, everything works fine if at first I define the "contentheight" of the scrollview.

I have a fixed controls by designer, and then in one panel I add the controls dynamically loading a layout of my control-

But... If i set the contentheight at the end.. then my controls added dynamically don't appear, the scroll view is changing the contentheight because I can scroll more but my controls are not visible.
 

Nicolás Cieri

Active Member
Licensed User
To be more specific, the panel where I add the dynamic controls, returns to its original size after moving the contentheight.

If you stop changing the contentheight, change the height of the panel, it does nothing anymore.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I had a look at your project.
All the objects you try to add dynamically are never added onto resumePanel.Panel, so they will not be displayed!
I still don't really understand the logic behind your layout.
You load a layout defined in the Designer, then you define a Panel in the code and load aother layout defined in the Designer onto this Panel.
Then you add this Panel onto one object of the previous layout !?
But you never add these objects onto resumePanel.Panel.
 
Upvote 0
Top