-1

everybody! I've just started learning swift so sorry if the question is dumb. I want to add values to an array "uu" using a loop. However every time it just overwrites "uu".

Pls help, thanks!

My code

2
  • 1
    use append property ...and post code rather then image Commented Oct 10, 2015 at 4:47
  • var Array = Array(repeating: "uu", count: 13) Commented Oct 13, 2017 at 19:13

1 Answer 1

4

That is simple as

uu.append(newNumber)
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.