mirror of
https://github.com/wu736139669/Ash_AWord.git
synced 2026-08-08 06:46:38 +00:00
add 图片浏览
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
// 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
const CGFloat MJRefreshHeaderHeight = 64.0;
|
||||
const CGFloat MJRefreshHeaderHeight = 54.0;
|
||||
const CGFloat MJRefreshFooterHeight = 44.0;
|
||||
const CGFloat MJRefreshFastAnimationDuration = 0.25;
|
||||
const CGFloat MJRefreshSlowAnimationDuration = 0.4;
|
||||
|
||||
@@ -105,6 +105,8 @@
|
||||
|
||||
// 重新调整frame
|
||||
[self adjustFrameWithContentSize];
|
||||
} else { // 被移除了
|
||||
_scrollView.mj_insetB -= self.mj_h;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+8
-1
@@ -266,7 +266,14 @@
|
||||
|
||||
// 恢复inset和offset
|
||||
[UIView animateWithDuration:MJRefreshSlowAnimationDuration delay:0.0 options:UIViewAnimationOptionAllowUserInteraction|UIViewAnimationOptionBeginFromCurrentState animations:^{
|
||||
_scrollView.mj_insetT -= self.mj_h;
|
||||
// _scrollView.mj_insetT -= self.mj_h;
|
||||
if (_scrollViewOriginalInset.top == 0) {
|
||||
_scrollView.mj_insetT = 0;
|
||||
} else if (_scrollViewOriginalInset.top ==_scrollView.mj_insetT) {
|
||||
_scrollView.mj_insetT -= self.mj_h;
|
||||
} else {
|
||||
_scrollView.mj_insetT = _scrollViewOriginalInset.top;
|
||||
}
|
||||
} completion:nil];
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user