I have a view with a button and 8 labels, i want to repeat this view with input from the user to customize these labels, so there will be this base view displayed multiple times on the screen and i don’t want them to cover up each other, the button and placement of the labels are the same of each view.
How would i programmatically make a new view appear after user input of the instance view and make sure it doesn’t cover up any other view, i hope this isn’t to broad, i just want to have one set view with a button and 8 labels, copy it multiple times and display the user input, thanks.
If I’m understanding what you are looking for, you want the display to scroll up showing all the different views that have been created by the user, one after the other.
To accomplish this, you can use a UIScrollView and programmatically add the views to the scroll view as needed. Make sure to increase the contentSize of the scroll view to account for the added views.
Here is some code:
Alternatively, depending on your setup and design, you could use a UITableView with a custom UITableViewCell that displays the pertinent info.
Hope that helps!