Files
peko-ios/YuMi/CustomUI/MoliMoneyLabel.h
2025-04-02 11:04:07 +08:00

35 lines
813 B
Objective-C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// 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