Greg Heo

Greg is a web and iOS developer. He likes caffeine, two-space tabs, and the Oxford comma. » more

Contact

Custom Keyboards in iOS

17 Mar 2013 • Tags: iOS

So you want to make a custom keyboard in your iOS app? Numeric, different key positions, custom button sizing – the possibilities are endless!

The tl;dr version: check out the sample code on GitHub.

» keep reading

Restoring In-app Purchases

16 Aug 2012 • Tags: iOS

I’ve noticed a bit of chatter on the Internets about this bit in Apple’s In-App Purchase Programming Guide:

…if your application supports product types that must be restorable, you must include an interface that allows users to restore these purchases

What the heck? Where am I supposed to find room for a “Restore” button in my app, you ask? Luckily, that’s your problem; what I’ll talk about here is how to handle the implementation.

» keep reading

Simple iOS audio playback

5 Jul 2012 • Tags: iOS

So you want some sound playback in your iOS app? Just something simple, like an alert sound or two…

» keep reading

Blocks in Objective-C

12 Jul 2011 • Tags: iOS OSX objective-c

I gave a quick introductory talk about blocks in Objective-C for iOS and Mac development tonight, and I thought I would put together some of the slides and my notes here as a post.

» keep reading

Foreign keys - an introduction

22 Feb 2011 • Tags: SQL

Someone recently asked me why I had all these foreign keys defined in the database schema even though “MySQL doesn’t support foreign keys.” After I finished laughing, the statement changed to “foreign keys aren’t needed in real database design anyway.”

I laughed again. Then I cried a little. Then I revoked this person’s license to work in any technical field.

» keep reading

» All blog posts