Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

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 submit the url here.

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

Comments