File tree Expand file tree Collapse file tree 3 files changed +47
-2
lines changed Expand file tree Collapse file tree 3 files changed +47
-2
lines changed Original file line number Diff line number Diff line change
1
+ BasedOnStyle : LLVM
2
+ IndentWidth : 4
3
+ UseTab : Never
4
+
5
+ ---
6
+ Language : Cpp
7
+ # Force Cpp style
8
+
9
+ ColumnLimit : 120
10
+ MaxEmptyLinesToKeep : 1
11
+ IndentCaseLabels : true
12
+
13
+ BreakBeforeBraces : Linux
14
+ BreakBeforeTernaryOperators : true
15
+ BreakConstructorInitializersBeforeComma : true
16
+
17
+ AllowShortIfStatementsOnASingleLine : false
18
+ AllowShortFunctionsOnASingleLine : false
19
+ AllowShortBlocksOnASingleLine : false
20
+ AllowShortLoopsOnASingleLine : false
21
+ AllowShortCaseLabelsOnASingleLine : false
22
+
23
+ PointerAlignment : Right
24
+
25
+ ObjCSpaceAfterProperty : true
26
+ ObjCSpaceBeforeProtocolList : true
27
+
28
+ SpaceBeforeParens : ControlStatements
29
+ SpacesInParentheses : false
30
+ SpacesInContainerLiterals : true
31
+ SpaceInEmptyParentheses : false
32
+ ---
Original file line number Diff line number Diff line change @@ -35,10 +35,23 @@ - (instancetype)initWithScrollView:(UIScrollView *)scrollView
35
35
self = [self init ];
36
36
if (self) {
37
37
_scrollView = scrollView;
38
+
39
+ [_scrollView addObserver: self forKeyPath: @" contentSize" options: NSKeyValueObservingOptionNew context: NULL ];
38
40
}
39
41
return self;
40
42
}
41
43
44
+ - (void )dealloc
45
+ {
46
+ @try {
47
+ [_scrollView removeObserver: self forKeyPath: @" contentSize" context: NULL ];
48
+ }
49
+ @catch (NSException *exception)
50
+ {
51
+ NSLog (@" %@ " , exception);
52
+ }
53
+ }
54
+
42
55
#pragma mark - Property
43
56
44
57
- (void )setLoadMoreFooterView : (UIView *)loadMoreFooterView
@@ -77,7 +90,7 @@ - (void)scrollViewDidScroll:(UIScrollView *)scrollView
77
90
if (_bottomStick && self.loadingMore == NO ) {
78
91
[self .loadMoreFooterView setFrameOriginY: MAX (scrollView.contentSize.height,
79
92
scrollView.contentOffset.y + CGRectGetHeight (scrollView.bounds) -
80
- self .loadMoreFooterView.bounds.size.height)];
93
+ self .loadMoreFooterView.bounds.size.height)];
81
94
} else {
82
95
[self .loadMoreFooterView setFrameOriginY: scrollView.contentSize.height];
83
96
}
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
3
3
s . name = 'YAUIKit'
4
- s . version = '2.4.5 '
4
+ s . version = '2.5.0 '
5
5
s . summary = 'YAUIKit'
6
6
s . homepage = 'https://github.com/candyan/YAUIKit'
7
7
s . license = 'MIT'
You can’t perform that action at this time.
0 commit comments