First post, first question… Currently developing my first “big app”, I’m looking for the (best) way to duplicate elements and their usage.
Here’s the two situations where I need it to happen…
- Multiple players
My app asks for name, a number, a color for X players. Depending on X I have to duplicate rows and then get access to the variables like “name_1”, “name_2”, and so on.
For now, I’m managing two players by duplicating fields in the storyboard and hiding the one I don’t need. It works but it’s not clean and will become a problem with 5 players…
How do I create / duplicate lines programmatically and maintain access to the data ?
- Multiple scores
After the game is created, I will ask the user to enter data on several categories for each player.
I have a column with 7 different textfields for each players where the user will enter corresponding values.
Same question as above but maybe same answer ?
Thanks a lot for any help !