2014 has been a great year, where I have made the transition from Flash to native iOS development and set up Interactive Coconut. Finished the year heavily involved in writing the Swift course for Thinkful, with interactive coconut in full swing,…
2014 has been a great year, where I have made the transition from Flash to native iOS development and set up Interactive Coconut. Finished the year heavily involved in writing the Swift course for Thinkful, with interactive coconut in full swing,…
In studying Swift initially, I was quite interested to read about concepts that I wasn’t familiar with, and curious to know if these were brand new concepts invented by excited Apple engineers, or if they were inspired from other other languages.…
This post has been updated for Swift 3.0 here. This post has been updated for Swift 3.0 here. Swift has an interesting multi-pronged approach to dealing with default and optional function parameters, based in part on its relationship with Objective C and…
All the options for popups and displaying View Controllers can get a little confusing at times. I’ve put together a project that summarises the various options. The app contains four tabs: Alerts/Actionsheets Popover Modals (presentViewController) – with options for playing…
I’m building a game using SpriteKit, and using the brilliant SKPhysicsBody Path Generator. I came across a limitation of physics bodies, that their shapes need to be convex, or an error is generated(strangely, the simulator doesn’t seem to mind, but…
Something I missed when moving from AS3/JS to iOS development was the greensock tweening libraries. Apple has some easing equations but not the extensive Penner-style library. I have found some easing classes written in Objective C and decided to take…
STOP PRESS: Updated for Swift 2.0 here! How function parameters work in Swift can be a little confusing, here’s an attempt to make it clearer: 1. func By default parameters of funcs do not have external names: If you want…
Events Well, this is the final blog post in the series of communication between objects and for something familiar, events are available in Objective C and Swift too. The equivalent of ActionScript’s EventDispatcher is called NSNotificationCenter. Rather than each display…
Blocks/Closures Blocks are another way that Objective C performs callbacks. Flash and Swift uses this technique as well, where they are called closures. Basically this involves passing in a function/method/message to the child, whilst maintaining the focus of the parent.…
Delegates Rather than passing the method itself to be called back, another callback strategy is to pass in an object that contains the callback methods. Delegation is such a design pattern, another way that children in Objective C and Swift…
You must be logged in to post a comment.