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
Steven Rayzman
2,423 PointsVariable Values at Runtime
Can variable values in an IOS application be changed during runtime?
1 Answer
Stone Preston
42,016 Pointsof course. that is why they are variables
you could have a name variable with an initial value of "". you could have a text field that the user inputs some text into and a button that says send.
when send is pressed you could set the value of name to whatever was input in the text field. the variables value changed from the default value it had of "" to "whatever the user entered"