2
This commit is contained in:
24
keyBoard/Class/Me/V/KBMyKeyboardCell.h
Normal file
24
keyBoard/Class/Me/V/KBMyKeyboardCell.h
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// KBMyKeyboardCell.h
|
||||
// keyBoard
|
||||
//
|
||||
// 自定义键盘截图页的标签 Cell(带表情、文案、右上角删除圆点)。
|
||||
// 使用 Masonry 约束,支持根据文案动态计算宽度。
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface KBMyKeyboardCell : UICollectionViewCell
|
||||
|
||||
/// 配置展示内容
|
||||
- (void)configEmoji:(NSString *)emoji title:(NSString *)title;
|
||||
|
||||
/// 根据文案计算自适应尺寸(高度固定,宽度随文本变化)
|
||||
+ (CGSize)sizeForEmoji:(NSString *)emoji title:(NSString *)title;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
Reference in New Issue
Block a user