Open Source iOS Library For Adding Basic Touch Handling To A UIView Instantly

There are some things that you just find yourself doing all the time, and one of those things is adding touch handling to a UIView component.

If you’ve done this before then you’ve probably created a solution for doing this, but if you don’t have one – or you are looking for something a little more elegant this open source library could be the ticket.

This library extends the UIView class adding handling for touch up, touch down, double taps, and two finger taps – all with a very clean syntax utilizing blocks.

You simply need to use code like this:

[myView whenTapped:^{ NSLog(@"I was tapped!"); }];

To add touch handling to a UIView.

The library is from Jake Marsh and you can find it on Github here:
https://github.com/jakemarsh/JMWhenTapped

A very clean and easy way for adding basic touch handling to a UIView.

Learn how to program an iOS app using Objective-C right from the start with The iOS Apprentice series. A set of epic tutorials for anyone - even if you've never programmed before.
Read more...
DeliciousTwitterFacebookLinkedInEmail

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can send a Tweet to @maniacdev on Twitter or submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>