iOS Question Declare arrays of views in the designer [closed]

Didier9

Well-Known Member
Licensed User
Longtime User
I need help doing this, if it is possible.
Some of my apps deal with arrays of views to facilitate processing. Erel strongly suggests using the Designer to declare views (rather than declaring in code) but I have not found a way or an example for how to do that.
TIA
 

Didier9

Well-Known Member
Licensed User
Longtime User
Thank you klaus, but the point is that the number of views may vary (at least the number of views per page may vary, I may place more views per page on an iPad than on an iPhone, and have more pages on the iPhone), so I guess I would have to declare the maximum number of views I will ever use in the designer, and only use those I need. It does not seem very elegant. In code, you can just create the number you need without having to know at design time how many that is.

Another possibility would be to create a scrolling page so that the number of views per page is not limited to the physical size of the screen.
I have not done that so that would be new territory for me.

Thanks again, I consider this closed.
 
Upvote 0
Top