Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Expose singleScrollDuration(JhtHorizontalMarquee)
  • Loading branch information
jinht committed Oct 16, 2018
1 parent 3905a29 commit 7d82582
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions JhtMarquee.framework/Headers/JhtHorizontalMarquee.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
#pragma mark - property
/** 当前_是否为_暂停状态 */
@property (nonatomic, assign, readonly) BOOL isPaused;
/** 单次滚动时间
* 注: 初始化 单次滚动时间《使用内部自适应计算功能》,singleScrollDuration 为内部计算结果
*/
@property (nonatomic, assign, readonly) CGFloat singleScrollDuration;



Expand Down
Binary file modified JhtMarquee.framework/JhtMarquee
Binary file not shown.
4 changes: 3 additions & 1 deletion JhtMarquee/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ - (void)createUI {
#pragma mark 横向 跑马灯
/** 添加 横向 跑马灯 */
- (void)addHorizontalMarquee {
self.horizontalMarquee.text = @" 这是一个跑马灯View,测试一下好不好用,哈哈哈,😁👌😀 😁👌😀 😁👌😀 😁👌😀 哈哈哈哈! 这是一个跑马灯View,测试一下好不好用,哈哈哈,😁👌😀 😁👌😀 😁👌😀 😁👌😀 哈哈哈哈! 这是一个跑马灯View,测试一下好不好用,哈哈哈,😁👌😀 😁👌😀 😁👌😀 😁👌😀 哈哈哈哈! 这是一个跑马灯View,测试一下好不好用,哈哈哈,😁👌😀 😁👌😀 😁👌😀 😁👌😀 哈哈哈哈! ";
self.horizontalMarquee.text = @" 这是一个跑马灯View,测试一下好不好用,哈哈哈,😁👌😀 😁👌😀 😁👌😀 😁👌😀 哈哈哈哈!";
[self.view addSubview:self.horizontalMarquee];

// NSLog(@"self.horizontalMarquee.singleScrollDuration => %lf", self.horizontalMarquee.singleScrollDuration);
}


Expand Down

0 comments on commit 7d82582

Please sign in to comment.