You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
712 B

//
// KJMarqueeLabel.h
// tongxin
//
// Created by ecell on 2021/6/21.
// Copyright © 2021 xTT. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, KJMarqueeLabelType) {
KJMarqueeLabelTypeLeft = 0,//向左边滚动
KJMarqueeLabelTypeLeftRight = 1,//先向左边,再向右边滚动
};
@interface KJMarqueeLabel : UILabel
@property(nonatomic,unsafe_unretained)KJMarqueeLabelType marqueeLabelType;
@property(nonatomic,unsafe_unretained)CGFloat speed;//速度
@property(nonatomic,unsafe_unretained)CGFloat secondLabelInterval;
@property(nonatomic,unsafe_unretained)NSTimeInterval stopTime;//滚到顶的停止时间
@end
NS_ASSUME_NONNULL_END