Posting NSNotifications with Swift 2

987 views · Published 15 October 2015 · 6:19 · Indexed 1 November 2026

Channel: cartoonsmart · 2015 · Education

Watch on YouTube

In this Swift 2 video tutorial, we will work with NSNotifications to call functions / send data between classes without breaking good MVC pattern (for example, having subviews send info to parent views). In our example, we'll make the GameScene post a notification to the GameViewController. We'll even pass dictionary data using the userInfo parameter.

For more Swift 2 video tutorials go to CartoonSmart.com

More from this channel