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

OK I am just getting annoying asking for help a lot today but I am very sorry however I would appreciate the help again.

Hey CJ its me again and man this stuff is getting a bit complicated and also more confusing video by video but I guess that's good because I am learning more. Well CJ thank you very much for all your help today you have been helping me a lot today thanks I appreciate. :-)

var todo = ["Learn Swift", "Building App", "Deploy App"]
todo.append("Debug App")
todo.append("Fix Bugs")
let item = todo.removeAtIndex(2)
todo.insert("Learn IOS", atIndex: 1)

2 Answers

Michael Liendo
Michael Liendo
15,326 Points

Sorry, I think CJ is taking a break ;) If you ever do want to get a hold of someone directly, you can always use the "@" sign followed by their name and they'll get notified.

Hopefully you've figured out the answer, if not, you're going to be kicking yourself I'm sure (we've all been there!). It looks like you've just misspelled iOS (the i isn't capitalized.). Everything else looks great! A small error, if anything, take it as a sign that it's all coming together!

Happy Coding! and feel free to "@" me if you have any other iOS questions

-Michael Liendo

Michael Liendo
Michael Liendo
15,326 Points

And welcome to Treehouse!

Haha yeah I noticed now wow I cant believe that Simple thing was the only thing that I was doing wrong...thanks anyways I appreciate the help.



todo.insert("Learn iOS", atIndex: 1)

Yep, it is the lower case "i" in iOS. Had the same issue as well.


Haha yeah I noticed wow...thanks anyways.