Răsfoiți Sursa

Add code address

add code address and fix a little problem
MJLee 11 ani în urmă
părinte
comite
fdbcc1fded
38 a modificat fișierele cu 95 adăugiri și 49 ștergeri
  1. BIN
      MJRefreshExample/MJRefreshExample.xcodeproj/project.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate
  2. 2 1
      MJRefreshExample/MJRefreshExample/Classes/AppDelegate.h
  3. 2 1
      MJRefreshExample/MJRefreshExample/Classes/AppDelegate.m
  4. 2 1
      MJRefreshExample/MJRefreshExample/Classes/MJCollectionViewController.h
  5. 2 1
      MJRefreshExample/MJRefreshExample/Classes/MJCollectionViewController.m
  6. 2 1
      MJRefreshExample/MJRefreshExample/Classes/MJExample.h
  7. 2 1
      MJRefreshExample/MJRefreshExample/Classes/MJExample.m
  8. 2 1
      MJRefreshExample/MJRefreshExample/Classes/MJExampleViewController.h
  9. 2 1
      MJRefreshExample/MJRefreshExample/Classes/MJExampleViewController.m
  10. 2 1
      MJRefreshExample/MJRefreshExample/Classes/MJNavigationController.h
  11. 2 1
      MJRefreshExample/MJRefreshExample/Classes/MJNavigationController.m
  12. 2 1
      MJRefreshExample/MJRefreshExample/Classes/MJTableViewController.h
  13. 2 2
      MJRefreshExample/MJRefreshExample/Classes/MJTableViewController.m
  14. 2 1
      MJRefreshExample/MJRefreshExample/Classes/MJTestViewController.h
  15. 7 2
      MJRefreshExample/MJRefreshExample/Classes/MJTestViewController.m
  16. 2 4
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefresh.h
  17. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshComponent.h
  18. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshComponent.m
  19. 2 0
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshConst.h
  20. 2 0
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshConst.m
  21. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshFooter.h
  22. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshFooter.m
  23. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshGifFooter.h
  24. 4 2
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshGifFooter.m
  25. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshGifHeader.h
  26. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshGifHeader.m
  27. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshHeader.h
  28. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshHeader.m
  29. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshLegendFooter.h
  30. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshLegendFooter.m
  31. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshLegendHeader.h
  32. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshLegendHeader.m
  33. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/UIScrollView+MJExtension.h
  34. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/UIScrollView+MJExtension.m
  35. 16 9
      MJRefreshExample/MJRefreshExample/MJRefresh/UIScrollView+MJRefresh.h
  36. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/UIScrollView+MJRefresh.m
  37. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/UIView+MJExtension.h
  38. 2 1
      MJRefreshExample/MJRefreshExample/MJRefresh/UIView+MJExtension.m

BIN
MJRefreshExample/MJRefreshExample.xcodeproj/project.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate


+ 2 - 1
MJRefreshExample/MJRefreshExample/Classes/AppDelegate.h

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  AppDelegate.h
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/Classes/AppDelegate.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  AppDelegate.m
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/Classes/MJCollectionViewController.h

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJCollectionViewController.h
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/Classes/MJCollectionViewController.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJCollectionViewController.m
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/Classes/MJExample.h

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJExample.h
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/Classes/MJExample.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJExample.m
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/Classes/MJExampleViewController.h

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJExampleViewController.h
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/Classes/MJExampleViewController.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJExampleViewController.m
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/Classes/MJNavigationController.h

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJNavigationController.h
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/Classes/MJNavigationController.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJNavigationController.m
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/Classes/MJTableViewController.h

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJTableViewController.h
 //  MJRefreshExample
 //

+ 2 - 2
MJRefreshExample/MJRefreshExample/Classes/MJTableViewController.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJTableViewController.m
 //  MJRefreshExample
 //
@@ -245,7 +246,6 @@ - (void)example11
      self.tableView.footer.refreshingBlock = ^{
      
      };
-     [self.tableView.footer beginRefreshing];
      
      此时self.tableView.footer == self.tableView.legendFooter
      */

+ 2 - 1
MJRefreshExample/MJRefreshExample/Classes/MJTestViewController.h

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJTestViewController.h
 //  MJRefreshExample
 //

+ 7 - 2
MJRefreshExample/MJRefreshExample/Classes/MJTestViewController.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJTestViewController.m
 //  MJRefreshExample
 //
@@ -25,7 +26,11 @@ - (void)viewDidLoad
 
 - (void)close
 {
-    [self dismissViewControllerAnimated:YES completion:nil];
+    if (self.presentingViewController) {
+        [self dismissViewControllerAnimated:YES completion:nil];
+    } else {
+        [self.navigationController popViewControllerAnimated:YES];
+    }
 }
 
 @end

+ 2 - 4
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefresh.h

@@ -1,7 +1,5 @@
-/*
- * 代码地址: https://github.com/CoderMJLee/MJRefresh
- * 代码地址: 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
- */
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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 "UIScrollView+MJRefresh.h"
 #import "MJRefreshGifHeader.h"

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshComponent.h

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJRefreshComponent.h
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshComponent.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJRefreshComponent.m
 //  MJRefreshExample
 //

+ 2 - 0
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshConst.h

@@ -1,3 +1,5 @@
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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>
 
 // 日志输出

+ 2 - 0
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshConst.m

@@ -1,3 +1,5 @@
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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;

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshFooter.h

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJRefreshFooter.h
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshFooter.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJRefreshFooter.m
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshGifFooter.h

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJRefreshGifFooter.h
 //  MJRefreshExample
 //

+ 4 - 2
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshGifFooter.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJRefreshGifFooter.m
 //  MJRefreshExample
 //
@@ -80,8 +81,9 @@ - (void)setRefreshingImages:(NSArray *)refreshingImages
     // 根据图片设置控件的高度
     UIImage *image = [refreshingImages firstObject];
     if (image.size.height > self.mj_h) {
+        _scrollView.mj_insetB -= self.mj_h;
         self.mj_h = image.size.height;
-        _scrollView.mj_insetB += self.mj_h - MJRefreshFooterHeight;
+        _scrollView.mj_insetB += self.mj_h;
     }
 }
 @end

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshGifHeader.h

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJRefreshGifHeader.h
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshGifHeader.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJRefreshGifHeader.m
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshHeader.h

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJRefreshHeader.h
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshHeader.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJRefreshHeader.m
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshLegendFooter.h

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJRefreshLegendFooter.h
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshLegendFooter.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJRefreshLegendFooter.m
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshLegendHeader.h

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJRefreshLegendHeader.h
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshLegendHeader.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  MJRefreshLegendHeader.m
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/UIScrollView+MJExtension.h

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  UIScrollView+Extension.h
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/UIScrollView+MJExtension.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  UIScrollView+Extension.m
 //  MJRefreshExample
 //

+ 16 - 9
MJRefreshExample/MJRefreshExample/MJRefresh/UIScrollView+MJRefresh.h

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  UIScrollView+MJRefresh.h
 //  MJRefreshExample
 //
@@ -32,6 +33,9 @@
 - (void)addGifHeader;
 
 #pragma mark - 移除下拉刷新控件
+/**
+ * 移除下拉刷新控件
+ */
 - (void)removeHeader;
 
 #pragma mark - 访问上拉刷新控件
@@ -53,6 +57,9 @@
 - (void)addGifFooter;
 
 #pragma mark - 移除上拉刷新控件
+/**
+ * 移除上拉刷新控件
+ */
 - (void)removeFooter;
 @end
 
@@ -94,22 +101,22 @@
 /**
  *  主动让下拉刷新头部控件进入刷新状态
  */
-- (void)headerBeginRefreshing MJDeprecated("建议直接使用[self.header beginRefreshing]");
+- (void)headerBeginRefreshing MJDeprecated("建议直接使用[self.tableView.header beginRefreshing]");
 
 /**
  *  让下拉刷新头部控件停止刷新状态
  */
-- (void)headerEndRefreshing MJDeprecated("建议直接使用[self.header endRefreshing]");
+- (void)headerEndRefreshing MJDeprecated("建议直接使用[self.tableView.header endRefreshing]");
 
 /**
  *  下拉刷新头部控件的可见性
  */
-@property (nonatomic, assign, getter = isHeaderHidden) BOOL headerHidden MJDeprecated("建议直接使用self.header.hidden");
+@property (nonatomic, assign, getter = isHeaderHidden) BOOL headerHidden MJDeprecated("建议直接使用self.tableView.header.hidden");
 
 /**
  *  是否正在下拉刷新
  */
-@property (nonatomic, assign, readonly, getter = isHeaderRefreshing) BOOL headerRefreshing MJDeprecated("建议直接使用self.header.isRefreshing");
+@property (nonatomic, assign, readonly, getter = isHeaderRefreshing) BOOL headerRefreshing MJDeprecated("建议直接使用self.tableView.header.isRefreshing");
 
 #pragma mark - 上拉刷新
 /**
@@ -130,20 +137,20 @@
 /**
  *  主动让上拉刷新尾部控件进入刷新状态
  */
-- (void)footerBeginRefreshing MJDeprecated("建议直接使用[self.footer beginRefreshing]");
+- (void)footerBeginRefreshing MJDeprecated("建议直接使用[self.tableView.footer beginRefreshing]");
 
 /**
  *  让上拉刷新尾部控件停止刷新状态
  */
-- (void)footerEndRefreshing MJDeprecated("建议直接使用[self.footer endRefreshing]");
+- (void)footerEndRefreshing MJDeprecated("建议直接使用[self.tableView.footer endRefreshing]");
 
 /**
  *  上拉刷新头部控件的可见性
  */
-@property (nonatomic, assign, getter = isFooterHidden) BOOL footerHidden MJDeprecated("建议直接使用self.footer.hidden");
+@property (nonatomic, assign, getter = isFooterHidden) BOOL footerHidden MJDeprecated("建议直接使用self.tableView.footer.hidden");
 
 /**
  *  是否正在上拉刷新
  */
-@property (nonatomic, assign, readonly, getter = isFooterRefreshing) BOOL footerRefreshing MJDeprecated("建议直接使用self.footer.isRefreshing");
+@property (nonatomic, assign, readonly, getter = isFooterRefreshing) BOOL footerRefreshing MJDeprecated("建议直接使用self.tableView.footer.isRefreshing");
 @end

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/UIScrollView+MJRefresh.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  UIScrollView+MJRefresh.m
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/UIView+MJExtension.h

@@ -1,4 +1,5 @@
-//
+// 代码地址: https://github.com/CoderMJLee/MJRefresh
+// 代码地址: 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
 //  UIView+Extension.h
 //  MJRefreshExample
 //

+ 2 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/UIView+MJExtension.m

@@ -1,4 +1,5 @@
-//
+//  代码地址: https://github.com/CoderMJLee/MJRefresh
+//  代码地址: 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
 //  UIView+Extension.m
 //  MJRefreshExample
 //