Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Swift Basics (retired) Collections Modifying an Array

Akeno Morrell
Akeno Morrell
2,239 Points

Insert into array at specific position

Finally, we forgot to add that we need to learn iOS development prior to building an app. Insert a new item titled "Learn iOS" at the second position in the todo array.

1 Answer

Logan R
Logan R
22,989 Points

You can read a great response from Chris Upjohn on this very topic on this thread:

https://teamtreehouse.com/forum/is-this-an-error-in-the-arrays-challenge-swift-basics

His is the very first answer.

Hope this helps :)

Akeno Morrell
Akeno Morrell
2,239 Points

ok i figured it out by the way thanks i figure that each step i did needed to be there before the last one so when removing at the position it wasn't able to remove anything but thanks so much for your quick response...