123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- //
- // HomeRecommendMusicView.m
- // KulexiuForStudent
- //
- // Created by 王智 on 2022/10/19.
- //
- #import "HomeRecommendMusicView.h"
- @interface HomeRecommendMusicView ()
- @property (nonatomic, strong) HomeRecommendMusicActionBlock callback;
- @end
- @implementation HomeRecommendMusicView
- + (instancetype)shareInstance {
- HomeRecommendMusicView *view = [[[NSBundle mainBundle] loadNibNamed:@"HomeRecommendMusicView" owner:nil options:nil] firstObject];
- return view;
- }
- - (void)homeMusicMore:(HomeRecommendMusicActionBlock)callback {
- if (callback) {
- self.callback = callback;
- }
- }
- - (IBAction)moreMusic:(id)sender {
- if (self.callback) {
- self.callback();
- }
- }
- + (CGFloat)getViewHeight {
- return 364.0f;
- }
- /*
- // Only override drawRect: if you perform custom drawing.
- // An empty implementation adversely affects performance during animation.
- - (void)drawRect:(CGRect)rect {
- // Drawing code
- }
- */
- @end
|