HomeHotCourseView.h 635 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // HomeHotCourseView.h
  3. // KulexiuForStudent
  4. //
  5. // Created by 王智 on 2022/4/21.
  6. //
  7. #import <UIKit/UIKit.h>
  8. typedef NS_ENUM(NSInteger, COURSE_ACTION) {
  9. COURSE_ACTION_LIVE, // 视频课
  10. COURSE_ACTION_VIDEO, // 直播课
  11. COURSE_ACTION_MORE, // 更多
  12. };
  13. typedef void(^HotCourseCallback)(COURSE_ACTION action);
  14. NS_ASSUME_NONNULL_BEGIN
  15. @interface HomeHotCourseView : UIView
  16. @property (weak, nonatomic) IBOutlet UIView *courseContainer;
  17. + (instancetype)shareInstance;
  18. - (void)courseActionCallback:(HotCourseCallback)callback;
  19. - (CGFloat)getViewHeightWithCount:(NSInteger)count;
  20. @end
  21. NS_ASSUME_NONNULL_END