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