- Release 0.1.0

This commit is contained in:
giuseppenuc committed 2016-01-28 18:00:37 +01:00
1 parent 1bd2a31ace
commit c471078bbb
186 files changed
+9384 -26

No files matched your search

View File
Whitespace-only changes.
+13
View File
@@ -0,0 +1,13 @@
//
// ToucheableScrollView.m
// Pods
//
// Created by Giuseppe Nucifora on 28/01/16.
//
//
#import <UIKit/UIKit.h>
@interface ToucheableScrollView : UIScrollView
@end
+36
View File
@@ -0,0 +1,36 @@
//
// ToucheableScrollView.m
// Pods
//
// Created by Giuseppe Nucifora on 28/01/16.
//
//
#import "ToucheableScrollView.h"
@implementation ToucheableScrollView
- (void) touchesEnded: (NSSet *) touches withEvent: (UIEvent *) event
{
// If not dragging, send event to next responder
if (!self.dragging) {
if ([self.nextResponder respondsToSelector:@selector(touchesEnded:withEvent:)]) {
[self.nextResponder touchesEnded: touches withEvent:event];
}
if ([self.nextResponder.nextResponder respondsToSelector:@selector(touchesEnded:withEvent:)]) {
[self.nextResponder.nextResponder touchesEnded: touches withEvent:event];
}
if ([self.nextResponder.nextResponder.nextResponder respondsToSelector:@selector(touchesEnded:withEvent:)]) {
[self.nextResponder.nextResponder.nextResponder touchesEnded: touches withEvent:event];
}
}
else {
[super touchesEnded: touches withEvent: event];
}
}
@end