Apple is training you to be a phishing victim

I love Apple. I’ve owned many Apple devices over the last quarter-century, and I spend my days writing apps for the iPhone that I probably spend too much time on. But I’m increasingly frustrated by the problems their software introduces and how long they let those problems lie. Have you ever unlocked your phone and […]

New “When In Use” Location Tracking in iOS 8

Posted by on Sep 12, 2014 in code, iOS | No Comments

If your app tracks the user’s location, you may notice when you run it in iOS8, the location tracking alert asks for permission to “access your location even when you are not using the app“. If your app only accesses the user’s location when the app is running, you can present a less scary message […]

Improving Push Notification Opt-in Rates

Posted by on Aug 22, 2014 in Design | No Comments

Shannon Levis and Alli Brian, Why People Are Turning Off Push: If you are in an industry that suffers from low push opt-in rates, can you overcome this inherent user bias? There is a preconceived notion that these kinds of apps only send self-promotional push notifications, and users have a hard time seeing their value […]

ModCloth’s Fit for Me launch covered by CNet

Posted by on Nov 1, 2013 in Business | No Comments

Huge congratulations to our client ModCloth on launching Fit for Me!

Story-Centered Design

Posted by on May 14, 2013 in Design | No Comments

We like to get functional prototypes to stakeholders as early as possible in the development process. Prototypes help frame the discussion by putting features in context, helping teams make better design decisions and uncovering edge cases. In this excellent piece on story-centered design, Braden Kowitz describes an approach that moves that kind of discussion back […]

Frame geometry macros to improve your UIKit code

I find myself doing more and more dynamic UI layout in iOS apps these days. When elements of a UI need to resize to fit their contents, or move to accommodate other elements, the layout code can get complex and verbose. We’ve developed a set of Objective-C UIKit macros that help make this code more […]

Objective-C Singleton Pattern Updated For Testability

Objective-C Singleton Pattern Updated For Testability

Posted by on Jan 24, 2013 in BDD, iOS, iPad, iPhone, Mac OS X, Software Development, TDD | 10 Comments

At Two Bit Labs we do a fair amount of unit testing. In places where we use singletons we use a variation on the the Objective-C dispatch_once pattern of thread safe singleton creation. This variation supports resetting the singleton or replacing it with a mock object. That way in our unit tests we can do […]

Objective-C Blocks Cheat Sheet

Posted by on Dec 6, 2012 in iOS, iPad, iPhone, Mac OS X | 6 Comments

Blocks are an incredibly powerful addition to Objective-C, introduced in iOS 4. However, their syntax can be maddeningly difficult to remember. Matt Gallagher has an excellent post that breaks down the syntax to help you understand it. If you haven’t read this article, go do it now. Even after working with blocks for a while, […]

GSM 0338 encoding for SMS

Posted by on Aug 27, 2012 in iOS, Mac OS X, Mobile Applications | One Comment

Here’s a little Objective-C helper class we wrote to make it easier to convert NSString’s to GSM 03.38 encoding on the iPhone, iPad, or Mac: Handles stripping out characters not included in the GSM0338 character set Calculates the length of a GSM 0338 string (e.g. ^,[,|,etc each require 14 bits instead of 7 Gives you […]