Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
解决JhtHorizontalMarquee内存泄漏问题
  • Loading branch information
jinht committed Aug 16, 2017
1 parent cf4d9d0 commit 44725ad
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 14 deletions.
Binary file not shown.
Binary file modified JhtMarquee/JhtMarqueeSDK/JhtMarqueeSDK.a
Binary file not shown.
9 changes: 2 additions & 7 deletions JhtMarquee/JhtMarqueeSDK/JhtVerticalMarquee.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,14 @@ typedef NS_ENUM(NSUInteger, MarqueeState_V) {

/** 上下滚动的跑马灯 */
@interface JhtVerticalMarquee : UIView
#pragma mark - Block
/** 每次滚动到某一个值 显示的block */
typedef void(^verticalMarqueeBlock)(JhtVerticalMarquee *view, NSInteger currentIndex);



#pragma mark - Property
#pragma mark required
/** 滚动文字的 数据源数组(支持attributedText与text混合) */
@property (nonatomic, strong) NSArray *sourceArray;


#pragma mark optional
/** 当前显示展示的文字在数据源数组中的索引_只读 */
/** 当前显示展示的文字 在数据源数组中的索引_只读 */
@property (nonatomic, assign, readonly) NSInteger currentIndex;

/** 是否为逆时针滚动(default:NO)
Expand Down Expand Up @@ -82,6 +76,7 @@ typedef void(^verticalMarqueeBlock)(JhtVerticalMarquee *view, NSInteger currentI
- (void)marqueeOfSettingWithState:(MarqueeState_V)marqueeState;

/** 每次滚动回调的Block */
typedef void(^verticalMarqueeBlock)(JhtVerticalMarquee *view, NSInteger currentIndex);
- (void)scrollWithCallbackBlock:(verticalMarqueeBlock)block;


Expand Down
Binary file modified JhtMarqueeSDK/JhtMarqueeSDK.a
Binary file not shown.
9 changes: 2 additions & 7 deletions JhtMarqueeSDK/JhtVerticalMarquee.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,14 @@ typedef NS_ENUM(NSUInteger, MarqueeState_V) {

/** 上下滚动的跑马灯 */
@interface JhtVerticalMarquee : UIView
#pragma mark - Block
/** 每次滚动到某一个值 显示的block */
typedef void(^verticalMarqueeBlock)(JhtVerticalMarquee *view, NSInteger currentIndex);



#pragma mark - Property
#pragma mark required
/** 滚动文字的 数据源数组(支持attributedText与text混合) */
@property (nonatomic, strong) NSArray *sourceArray;


#pragma mark optional
/** 当前显示展示的文字在数据源数组中的索引_只读 */
/** 当前显示展示的文字 在数据源数组中的索引_只读 */
@property (nonatomic, assign, readonly) NSInteger currentIndex;

/** 是否为逆时针滚动(default:NO)
Expand Down Expand Up @@ -82,6 +76,7 @@ typedef void(^verticalMarqueeBlock)(JhtVerticalMarquee *view, NSInteger currentI
- (void)marqueeOfSettingWithState:(MarqueeState_V)marqueeState;

/** 每次滚动回调的Block */
typedef void(^verticalMarqueeBlock)(JhtVerticalMarquee *view, NSInteger currentIndex);
- (void)scrollWithCallbackBlock:(verticalMarqueeBlock)block;


Expand Down

0 comments on commit 44725ad

Please sign in to comment.