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

Store and recall user name in string

I'm creating an iOS application that will simulate a conversation between a being and the user. There is a label (being's part of the conversation), text field (to enter user's name), and a button (to store the name in a string). Is there a shorter method of storing the string? Any and all ideas would be greatly appreciated. Thanks.

2 Answers

I am not experienced with iOS development, but when you tipically want to store a number or a string, you store it in a variable or array. You could search about it and see how you can implement that

Awesome, I didn't think of that. I just have to figure out how to take input and store it in the array. Great excuse to bust out XCode, thanks again.