35 lines
813 B
Objective-C
35 lines
813 B
Objective-C
//
|
||
// MoliMoneyLabel.h
|
||
// YuMi
|
||
//
|
||
// Created by P on 2025/2/25.
|
||
//
|
||
|
||
#import <UIKit/UIKit.h>
|
||
|
||
NS_ASSUME_NONNULL_BEGIN
|
||
|
||
@interface MoliMoneyLabel : UIView
|
||
|
||
/// 带金币 icon 的 label view
|
||
/// - Parameters:
|
||
/// - textColor: 文本颜色
|
||
/// - font: 文本字体
|
||
/// - position: icon 位置,1: 左,2:右
|
||
/// - size: icon 大小
|
||
+ (MoliMoneyLabel *)moneyLabelWithTextColot:(UIColor *)textColor font:(UIFont *)font moneyPostion:(NSInteger)position moneySize:(CGSize)size;
|
||
|
||
- (void)updateContent:(NSString *)content;
|
||
- (void)updateFont:(UIFont *)font size:(CGSize)size;
|
||
- (void)displayIcon:(BOOL)displayOrNot;
|
||
- (void)updateSpacing:(NSInteger)space;
|
||
- (void)updateLabelAlignment:(NSTextAlignment)alignment;
|
||
- (void)insertSpaceAtLeast;
|
||
|
||
- (void)hideAll;
|
||
- (void)removeSpace;
|
||
|
||
@end
|
||
|
||
NS_ASSUME_NONNULL_END
|