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 Build a Playlist Browser with Swift Using a Navigation Controller With Segues Modifying the UI

Explain downcasting and upcasting, and the rest of the video as if to a 5 year old.

Pasan introduces too many new concepts without taking the time to explain them in this video. He moves too quickly and assumes that we know what he is talking about.

Can some one explain downcasting and upcasting to a 5 year old? Can someone explain what he is doing and why, I am confused in literally the whole video.

None of the answer I have seen in the forums have been of any help to understand down casting and upcasting simply.

1 Answer

Jhoan Arango
Jhoan Arango
14,575 Points

Hey Anthony: I had the same question a few weeks ago. Someone took the time to explain it to me, even tho I am not 100% clear when to use down casting other than in segues, this helped me a lot in understanding the concept. Here is the link to my question.

https://teamtreehouse.com/forum/downcasting-as-someone-please-pretend-i-m-5-years-old-and-explain-downcasting-and-why-should-we-use-it

It may help you a bit.

No, it didn't help a bit. It helped a lot! :)

Jhoan Arango
Jhoan Arango
14,575 Points

Good, also I recommend reading the iBook on swift, it actually made a lot of sense to me, and now I understand it 100%

Good luck