- Dynamic Label & its hiding mechanism

-
This commit is contained in:
TrueZhuanjia
2025-06-14 18:09:31 +08:00
parent e2bebbcc61
commit de5fb7a19b
10 changed files with 298 additions and 203 deletions
+6
View File
@@ -10,6 +10,11 @@
#import <UIKit/UIKit.h>
@protocol HideOverlappedDynamicLabelDelegate <NSObject>
- (void)hideOverlappedDynamicLabels;
@end
@interface MenuSectionView : UIView
// 外部可访问属性
@@ -22,6 +27,7 @@
@property (nonatomic, assign) CGFloat headerViewHeight;
@property (nonatomic, assign) CGFloat headerViewVerticalSpacing;
@property (nonatomic, strong) NSMutableArray<UIStackView *> *subStackViews;
@property (nonatomic, weak) id<HideOverlappedDynamicLabelDelegate> delegate; // Delegate property
// 方法
- (void)setSectionWithIcon:(UIImage *)icon andSize:(CGFloat)size;