CategoryPickerView.h 666 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // CategoryPickerView.h
  3. // BuguLive
  4. //
  5. // Created by qitewei on 2025/8/20.
  6. // Copyright © 2025 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "IndustryCategoryModel.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. @protocol CategoryPickerViewDelegate <NSObject>
  12. - (void)categoryPickerView:(UIView *)pickerView didSelectCategory:(IndustryCategoryModel *)category;
  13. @end
  14. @interface CategoryPickerView : UIView
  15. @property (nonatomic, weak) id<CategoryPickerViewDelegate> delegate;
  16. @property (nonatomic, strong) NSArray<IndustryCategoryModel *> *categories;
  17. - (void)showInView:(UIView *)parentView fromRect:(CGRect)rect;
  18. - (void)hide;
  19. @end
  20. NS_ASSUME_NONNULL_END