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