|
@@ -1,4 +1,11 @@
|
|
|
|
|
+## 寻求志同道合的小伙伴
|
|
|
|
|
+* 因本人工作忙,没有太多时间去维护MJRefresh,在此向广大框架使用者说声:非常抱歉!😞
|
|
|
|
|
+* 现寻求志同道合的小伙伴一起维护此框架,有兴趣的小伙伴可以[发邮件](mailto:richermj123go@vip.qq.com)给我,非常感谢😊
|
|
|
|
|
+* 如果一切OK,我将开放框架维护权限(github、pod等)
|
|
|
|
|
+* MJExtension已经找到一位小伙伴(^-^)V
|
|
|
|
|
+
|
|
|

|
|

|
|
|
|
|
+
|
|
|
## MJRefresh
|
|
## MJRefresh
|
|
|
* An easy way to use pull-to-refresh
|
|
* An easy way to use pull-to-refresh
|
|
|
|
|
|
|
@@ -126,9 +133,6 @@ UIView+MJExtension.h UIView+MJExtension.m
|
|
|
|
|
|
|
|
/** Ignored scrollView contentInset bottom */
|
|
/** Ignored scrollView contentInset bottom */
|
|
|
@property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetBottom;
|
|
@property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetBottom;
|
|
|
-
|
|
|
|
|
-/** Automaticlly show or hidden by the count of data(Show-have data,Hidden- no data) */
|
|
|
|
|
-@property (assign, nonatomic) BOOL automaticallyHidden;
|
|
|
|
|
@end
|
|
@end
|
|
|
```
|
|
```
|
|
|
|
|
|
|
@@ -153,15 +157,15 @@ UIView+MJExtension.h UIView+MJExtension.m
|
|
|
## <a id="The_drop-down_refresh_01-Default"></a>The drop-down refresh 01-Default
|
|
## <a id="The_drop-down_refresh_01-Default"></a>The drop-down refresh 01-Default
|
|
|
|
|
|
|
|
```objc
|
|
```objc
|
|
|
-self.tableView.header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
|
|
|
|
|
|
|
+self.tableView.mj_header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
|
|
|
//Call this Block When enter the refresh status automatically
|
|
//Call this Block When enter the refresh status automatically
|
|
|
}];
|
|
}];
|
|
|
或
|
|
或
|
|
|
// Set the callback(Once you enter the refresh status,then call the action of target,that is call [self loadNewData])
|
|
// Set the callback(Once you enter the refresh status,then call the action of target,that is call [self loadNewData])
|
|
|
-self.tableView.header = [MJRefreshNormalHeader headerWithRefreshingTarget:self refreshingAction:@selector(loadNewData)];
|
|
|
|
|
|
|
+self.tableView.mj_header = [MJRefreshNormalHeader headerWithRefreshingTarget:self refreshingAction:@selector(loadNewData)];
|
|
|
|
|
|
|
|
// Enter the refresh status immediately
|
|
// Enter the refresh status immediately
|
|
|
-[self.tableView.header beginRefreshing];
|
|
|
|
|
|
|
+[self.tableView.mj_header beginRefreshing];
|
|
|
```
|
|
```
|
|
|

|
|

|
|
|
|
|
|