Craig Grummitt – Before I forget

Discoveries in Swift and iOS development.

Category: Swift

  • Keyboards, text views and first responders

    If you’re moving your app’s interface from under the keyboard when it appears, you’re probably doing the following: 1. Get a reference to the relevant text field in the UITextFieldDelegate‘s textFieldDidBeginEditing method.…

    Keep reading

  • Any vs AnyObject vs NSObject

    What is the difference between these three enigmatic types? A sometimes confusing topic, let’s get it straight. UPDATE: Things have changed in Swift 3! This post has been updated for Swift 3…

    Keep reading

  • Parameter defaults and Optional Function Parameters in Swift 3.0

    There are more changes in Swift 3.0 to Optional Function parameters, so I thought I should revisit this blog post. Functions no longer include the name of the first parameter in the function…

    Keep reading

  • Sending push notifications using Parse Server

    Finally – phew! I have migrated Grabble Words from Parse to using Parse server using herokuapp (a platform as a service (PaaS) which you can use to run applications in the cloud.) with…

    Keep reading

  • Func parameters in Swift 3.0

    Well, Apple’s done it again, and made func parameters even simpler in Swift 3.0! It’s all very straight forward now, class methods, static methods, global functions, init methods – they all work…

    Keep reading

  • Farewell c-style `for` statement

    In Swift 3.0, the c-style for statement is deprecated. A bold step to remove a structure that most of us are familiar with to make the language more robust, and to continue the…

    Keep reading

  • Farewell parameter var

    In Swift 3.0, the var keyword in function parameters is being removed. Apparently there was too much confusion of var parameters with the functionality of inout parameters. For more information, see the Swift…

    Keep reading

  • Create a CocoaPod

    In the previous post we created a dynamic framework. Now we’re going to share this code with the world, by turning it into a CocoaPod and uploading it to cocoapods.org: First, drag your whole project folder to…

    Keep reading

  • Create a dynamic framework for iOS in Swift

    Have you ever written some Swift code in iOS that you’ve thought, this could be way useful in other projects? One solution is to set up a Cocoa Touch framework – edit your…

    Keep reading

  • Looking back on 2015

    2015 has been another great year. Under moniker Interactive Coconut I spent a lot of time working on new app Grabble Words, which launched at the end of the year. Technically Grabble Words…

    Keep reading