add 图片浏览

This commit is contained in:
wu736139669
2015-04-02 09:37:44 +08:00
parent 48e33aec03
commit c42f1f5030
125 changed files with 12910 additions and 2784 deletions
@@ -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;
}
}
@@ -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;