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.
43 lines
1.1 KiB
43 lines
1.1 KiB
// |
|
// TFProductionCoverView.h |
|
// TFReader |
|
// |
|
// Created by 谢腾飞 on 2020/12/18. |
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved. |
|
// |
|
|
|
#import <UIKit/UIKit.h> |
|
|
|
NS_ASSUME_NONNULL_BEGIN |
|
|
|
typedef NS_ENUM(NSUInteger, TFProductionCoverDirection) { |
|
|
|
TFProductionCoverDirectionVertical, // 竖直方向 |
|
TFProductionCoverDirectionHorizontal // 水平方向 |
|
}; |
|
|
|
@interface TFProductionCoverView : UIView |
|
|
|
// 封面图片地址 |
|
@property (nonatomic ,copy) NSString *coverImageUrl; |
|
// 封面底部标题 |
|
@property (nonatomic ,copy) NSString *coverTitleString; |
|
// 是否是付费样式 |
|
@property (nonatomic ,assign) BOOL is_locked; |
|
// 作品类型 |
|
@property (nonatomic ,assign) TFProductionType productionType; |
|
// 图片展示方向 |
|
@property (nonatomic ,assign) TFProductionCoverDirection coverDirection; |
|
|
|
/* 初始化 |
|
* @param productionType 作品类型 |
|
* @param productionCoverDirection 图片展示方向 |
|
**/ |
|
- (instancetype)initWithProductionType:(TFProductionType)type coverDirection:(TFProductionCoverDirection)direction; |
|
|
|
// 重置为默认图 |
|
- (void)resetDefaultHoldImage; |
|
|
|
@end |
|
|
|
NS_ASSUME_NONNULL_END
|
|
|