-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCustomizedUIScrollViewForImageView.m
More file actions
59 lines (43 loc) · 1.48 KB
/
CustomizedUIScrollViewForImageView.m
File metadata and controls
59 lines (43 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//
// CustomizedUIScrollViewForImageView.m
// companyNameGallary
//
// Created by anonymous on 11/22/11.
// Copyright 2011 companyName Studio. All rights reserved.
//
#import "CustomizedUIScrollViewForImageView.h"
@implementation CustomizedUIScrollViewForImageView
// The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
- (id)initWithFrame:(CGRect)frame{
return [super initWithFrame:frame];
}
- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
[self.nextResponder touchesBegan:touches withEvent:event];
}
- (void) touchesEnded: (NSSet *) touches withEvent: (UIEvent *) event {
// If not dragging, send event to next responder
if (!self.dragging)
[self.nextResponder touchesEnded: touches withEvent:event];
else
[super touchesEnded: touches withEvent: event];
}
/*
// Implement loadView to create a view hierarchy programmatically, without using a nib.
- (void)loadView {
}
*/
/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
[super viewDidLoad];
}
*/
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Overriden to allow any orientation.
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft
|| interfaceOrientation == UIInterfaceOrientationLandscapeRight );
}
- (void)dealloc {
[super dealloc];
}
@end