-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCLScrollView.m
executable file
·49 lines (39 loc) · 1.34 KB
/
CLScrollView.m
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
//
// CLScrollView.m
// Cascade
//
// Created by Emil Wojtaszek on 26.07.2011.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "CLScrollView.h"
@implementation CLScrollView
///////////////////////////////////////////////////////////////////////////////////////////////////
- (id)init
{
self = [super init];
if (self) {
// Initialization code here.
[self setClipsToBounds: NO];
[self setDecelerationRate: UIScrollViewDecelerationRateFast];
[self setScrollsToTop: NO];
[self setBounces: YES];
[self setAlwaysBounceVertical: NO];
[self setAlwaysBounceHorizontal: YES];
[self setDirectionalLockEnabled: YES];
[self setDelaysContentTouches:YES];
[self setMultipleTouchEnabled:NO];
[self setShowsVerticalScrollIndicator: NO];
[self setShowsHorizontalScrollIndicator: NO];
[self setAutoresizingMask:
UIViewAutoresizingFlexibleBottomMargin |
UIViewAutoresizingFlexibleTopMargin |
UIViewAutoresizingFlexibleHeight];
}
return self;
}
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)scrollRectToVisible:(CGRect)rect animated:(BOOL)animated {
// bug fix with auto scrolling when become first responder
// do not overide it
}
@end