I've been annoyed lately at the number of baby apps that don't seem to work when my daughter is playing with my iphone. Seems that the problem is that they only expect one finger, but if bubby is holding the phone with one hand on the screen and taps it with her other hand, it doesn't work. Or if she taps it with more than one finger, or if she swipes instead of tapping, or doesn't get it 'just right'.

So to that end, i've made a UIGestureRecogniser that works for any old tap, especially for baby games for the iphone:

And you use it like so, in your view controller:

[code] - (void)viewDidLoad {     [super viewDidLoad];       BabyTapGesture *bub = [[[BabyTapGesture alloc] initWithTarget:self action:@selector(tap)] autorelease];     [self.view addGestureRecognizer:bub];   }   - (void) tap {     NSLog(@"Tapped!"); } <div>[/code]

Thanks for reading! And if you want to get in touch, I'd love to hear from you: chris.hulbert at gmail.

Chris Hulbert

(Comp Sci, Hons - UTS)

iOS Developer in Sydney.

I have worked at places such as Google, Cochlear, News Corp, Fox Sports, NineMSN, FetchTV, Woolworths, and Westpac, among others. If you're looking for a good iOS developer, drop me a line!

Get in touch:
[email protected]
my resume

 Subscribe via RSS