Browse Source

expose gifView property

expose gifView property
MJLee 10 years ago
parent
commit
16ffb177d5

+ 1 - 1
MJRefresh.podspec

@@ -1,6 +1,6 @@
 Pod::Spec.new do |s|
     s.name         = 'MJRefresh'
-    s.version      = '3.0.7'
+    s.version      = '3.0.8'
     s.summary      = 'An easy way to use pull-to-refresh'
     s.homepage     = 'https://github.com/CoderMJLee/MJRefresh'
     s.license      = 'MIT'

+ 2 - 0
MJRefresh/Custom/Footer/Auto/MJRefreshAutoGifFooter.h

@@ -9,6 +9,8 @@
 #import "MJRefreshAutoStateFooter.h"
 
 @interface MJRefreshAutoGifFooter : MJRefreshAutoStateFooter
+@property (weak, nonatomic, readonly) UIImageView *gifView;
+
 /** 设置state状态下的动画图片images 动画持续时间duration*/
 - (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state;
 - (void)setImages:(NSArray *)images forState:(MJRefreshState)state;

+ 3 - 1
MJRefresh/Custom/Footer/Auto/MJRefreshAutoGifFooter.m

@@ -9,7 +9,9 @@
 #import "MJRefreshAutoGifFooter.h"
 
 @interface MJRefreshAutoGifFooter()
-@property (weak, nonatomic) UIImageView *gifView;
+{
+    __unsafe_unretained UIImageView *_gifView;
+}
 /** 所有状态对应的动画图片 */
 @property (strong, nonatomic) NSMutableDictionary *stateImages;
 /** 所有状态对应的动画时间 */

+ 2 - 0
MJRefresh/Custom/Footer/Back/MJRefreshBackGifFooter.h

@@ -9,6 +9,8 @@
 #import "MJRefreshBackStateFooter.h"
 
 @interface MJRefreshBackGifFooter : MJRefreshBackStateFooter
+@property (weak, nonatomic, readonly) UIImageView *gifView;
+
 /** 设置state状态下的动画图片images 动画持续时间duration*/
 - (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state;
 - (void)setImages:(NSArray *)images forState:(MJRefreshState)state;

+ 3 - 1
MJRefresh/Custom/Footer/Back/MJRefreshBackGifFooter.m

@@ -9,7 +9,9 @@
 #import "MJRefreshBackGifFooter.h"
 
 @interface MJRefreshBackGifFooter()
-@property (weak, nonatomic) UIImageView *gifView;
+{
+    __unsafe_unretained UIImageView *_gifView;
+}
 /** 所有状态对应的动画图片 */
 @property (strong, nonatomic) NSMutableDictionary *stateImages;
 /** 所有状态对应的动画时间 */

+ 2 - 0
MJRefresh/Custom/Header/MJRefreshGifHeader.h

@@ -9,6 +9,8 @@
 #import "MJRefreshStateHeader.h"
 
 @interface MJRefreshGifHeader : MJRefreshStateHeader
+@property (weak, nonatomic, readonly) UIImageView *gifView;
+
 /** 设置state状态下的动画图片images 动画持续时间duration*/
 - (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state;
 - (void)setImages:(NSArray *)images forState:(MJRefreshState)state;

+ 3 - 1
MJRefresh/Custom/Header/MJRefreshGifHeader.m

@@ -9,7 +9,9 @@
 #import "MJRefreshGifHeader.h"
 
 @interface MJRefreshGifHeader()
-@property (weak, nonatomic) UIImageView *gifView;
+{
+    __unsafe_unretained UIImageView *_gifView;
+}
 /** 所有状态对应的动画图片 */
 @property (strong, nonatomic) NSMutableDictionary *stateImages;
 /** 所有状态对应的动画时间 */