Learn iOS with Examples, Code Snippets and Video Tutorials

Free Swift iOS and tvOS Tutorial – Defer Statements and Programming with Emojis

Free Swift iOS and tvOS Tutorial – Defer Statements and Programming with Emojis
May 21, 2016 Justin

Time to learn about defer statements! This chunk of code runs in functions marked with the throws option, regardless of whether or not an error occurs. Hrm doesn’t sound right. What the heck , here’s what the official Swift Programming Guide has to to say… “Use defer to write a block of code that is always executed before a function returns, regardless of whether an error was thrown. You can use defer even when there is no error handling, to simplify functions that can return from several different places”. Yeah, so that. We also have some fun programming with emojis!  As usual, curb your appetite for serious programming tutorials. These are just for fun!

This video is from CartoonSmart’s Video Tutorial Podcast, so keep in mind, this is as much for fun as it is for education. But you’ll probably learn way more than you thought!

Subscribe to our Podcast through iTunes RSS feed / Full Show Archive

Free Tutorials!

Sign up for the newsletter to get a free CartoonSmart account and track your progress in every course.

I'm cool. Sign me up!

Justin Dike is the owner and lead developer at CartoonSmart.com. He's taught hundreds of hours of game development video tutorials, covering everything from coding to art. These days he's working mostly on Swift and Sprite Kit tutorials, which often lead into highly polished iOS / tvOS Starter Kits, which require no programming at all, but are capable of making nearly any type game! Yeah, you read that write. You can also find Justin at the official CartoonSmart Podcast

0 Comments

Leave a reply

Your email address will not be published. Required fields are marked *

*

Check out our premium Swift and Sprite Kit Tutorial content!

Visit CartoonSmart.com