Stephen Radford
  • Blog
  • Email
Sign in Subscribe

iOS

A collection of 27 posts
Development

Creating a sharedInstance in Swift

Or, "How the fuck to I make a singleton?" One of the patterns that seems to be very common in Cocoa is the sharedInstance pattern. You can see it in a few of the native classes to UIKit and Cocoa. For example: * In UIApplication you havesharedApplication which returns the current
Aug 3, 2015 1 min read
Swift, iOS & OS X Programming
Development Featured

Swift, iOS & OS X Programming

For years I put off learning how to make iOS apps. Ever since their introduction, back when iOS was called iPhone OS, I wanted to craft something but Objective-C and its obscurity put me off. The syntax was ugly and the naming conventions weren't what I was used to. For
Jun 29, 2015 7 min read
← Newer Posts Page 2 of 2
Stephen Radford © 2023
  • Twitter
Powered by Ghost