Browse Source

Change animation effects

Change animation effects and change one interface
MJLee 11 years ago
parent
commit
e36f88ddc7

+ 2 - 2
MJRefresh.podspec

@@ -1,12 +1,12 @@
 Pod::Spec.new do |s|
   s.name         = "MJRefresh"
-  s.version      = "1.3.5"
+  s.version      = "1.3.7"
   s.summary      = "The easiest way to use pull-to-refresh"
   s.homepage     = "https://github.com/CoderMJLee/MJRefresh"
   s.license      = "MIT"
   s.authors      = { 'MJ Lee' => '199109106@qq.com'}
   s.platform     = :ios, "6.0"
-  s.source       = { :git => "https://github.com/CoderMJLee/MJRefresh.git", :tag => "1.3.5" }
+  s.source       = { :git => "https://github.com/CoderMJLee/MJRefresh.git", :tag => s.version }
   s.source_files = "MJRefreshExample/MJRefreshExample/MJRefresh/*.{h,m}"
   s.resource     = "MJRefreshExample/MJRefreshExample/MJRefresh/MJRefresh.bundle"
   s.requires_arc = true

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

@@ -66,8 +66,8 @@ - (void)setState:(MJRefreshHeaderState)state
                 
                 [UIView animateWithDuration:MJRefreshSlowAnimationDuration animations:^{
                     self.activityView.alpha = 0.0;
-                    self.arrowImage.alpha = 1.0;
                 } completion:^(BOOL finished) {
+                    self.arrowImage.alpha = 1.0;
                     self.activityView.alpha = 1.0;
                     [self.activityView stopAnimating];
                 }];

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

@@ -16,7 +16,7 @@
 @interface UIScrollView (MJRefresh)
 #pragma mark - 访问下拉刷新控件
 /** 下拉刷新控件 */
-@property (weak, nonatomic, readonly) MJRefreshHeader *header;
+@property (strong, nonatomic, readonly) MJRefreshHeader *header;
 /** gif功能的下拉刷新控件 */
 @property (nonatomic, readonly) MJRefreshGifHeader *gifHeader;
 /** 传统的下拉刷新控件 */
@@ -88,7 +88,7 @@
 
 #pragma mark - 访问上拉刷新控件
 /** 上拉刷新控件 */
-@property (weak, nonatomic, readonly) MJRefreshFooter *footer;
+@property (strong, nonatomic, readonly) MJRefreshFooter *footer;
 /** gif功能的上拉刷新控件 */
 @property (nonatomic, readonly) MJRefreshGifFooter *gifFooter;
 /** 传统的上拉刷新控件 */