iOS indie developers writing every day about their stuff.

Call for testers: OuttaMyWay! v3

Mark Granoff

Nearly 2 years in the making, OuttaMyWay! v3 is ready for public testing! This update supports iOS8 and above on both iPhones and iPads, and has a number of other enhancements and new features. Rewritten from the ground up, the app retains its familiar feel. The app is now universal, supporting all iPhone and iPad … Continue reading →

NSTimer and Blocks (Closures)

Tod Cunningham

IntroductionI’m always a bit surprised to discover that NSTimer doesn’t have support, out of the box, for blocks or closures.  So I decided to put together this simple extension to NSTimer that supports swift closures.The NSTimer Classic WayNSTimer has been around for a long time.  It uses the objective-c runtime to invoke some code after a period of time. The invocation can be done by either an objective-c NSInvocation object or via selectors.  Let’s look at a simple example of invoking a selector in swift using a NSTimer.class SimpleTimerTest{    var timer : NSTimer?        func someTask( timeout:NSTimeInterval )  […]