Bummer! You must be logged in to access this page.

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

Passing data from previous view controller to another view controller.

I am trying to pass a value of what's been entered in the textfield in the previous controller to show up as a label in the next view controller. How would I achieve this?

1 Answer

Hello Amit:

When passing data from one ViewController to the next one you can do it with segues, and delegates. If you have not seen THIS course, I recommend watching it.

Build a Playlist Browser

Here Pasan teaches you how to achieve that.

Good luck