Reputation: 67
I have an app with a form that have a UIScollView with four pages, each page has four control (UITextField, UISlider, UISegmentedControl and Labels). So, twelve controls. Considering the performance of the app, what it is better:
1) Insert the twelve controls in four pages of UIscrollView
2) Insert six control and enough code the arrange it in the same UIView, simulating the changing of pages
3) There is no difference.
Besides, in that app doesn't have only the form but a lot of other things.
Upvotes: 0
Views: 35
Reputation: 186
3) Performance wise it shouldn't make much of a difference, especially since it's only four pages and twelve controls...that's really nothing resources wise.
However, if you ever forsee adding more pages or controls that need to go to every page it would be smart to code a class that creates the page, rather than create each individual part over and over. If there are any differences at all you'll want to do each page separate.
Upvotes: 1