Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexito4/uitapoutsidegesturerecognizer
UITapOutsideGestureRecognizer is a subclass of UIGestureRecognizer that is executed with any tap OUTSIDE one view.
https://github.com/alexito4/uitapoutsidegesturerecognizer
Last synced: 1 day ago
JSON representation
UITapOutsideGestureRecognizer is a subclass of UIGestureRecognizer that is executed with any tap OUTSIDE one view.
- Host: GitHub
- URL: https://github.com/alexito4/uitapoutsidegesturerecognizer
- Owner: alexito4
- Created: 2012-10-19T18:43:39.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-10-19T18:58:26.000Z (about 12 years ago)
- Last Synced: 2024-11-08T21:23:47.456Z (about 2 months ago)
- Language: Objective-C
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
UITapOutsideGestureRecognizer
=============================UITapOutsideGestureRecognizer is a subclass of UIGestureRecognizer that is executed with any tap **OUTSIDE** one view.
# Use
The use of this UITapGestureRecognizer subclass differs a little from the rest.
You create the UITapOutsideGestureRecognizer as always but using the method:- (id)initWithTarget:(id)target action:(SEL)action view:(UIView *)view;
In the view parameter you pass the **view in wich you want to apply the gesture recognizer**.
The you need to **add the gesture to the controller view**.
# Example
UITapOutsideGestureRecognizer *tap = [[UITapOutsideGestureRecognizer alloc] initWithTarget:self action:@selector(tapOutside:) view:self.importantView];
[self.view addGestureRecognizer:tap];