MusicCell.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // MusicCell.h
  3. // YBVideo
  4. //
  5. // Created by YunBao on 2018/6/20.
  6. // Copyright © 2018年 cat. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class MusicModel;
  10. typedef void (^MusicRecordBlock)(NSString *type);
  11. typedef void (^MusicDownLoadResault)(NSString *rs,NSString *erro);
  12. @interface MusicCell : UITableViewCell
  13. @property(nonatomic,strong)MusicModel *model;
  14. @property(nonatomic,copy)NSString *songID; //歌曲ID
  15. @property (nonatomic,copy) NSString *path; //音乐下载链接
  16. @property (weak, nonatomic) IBOutlet UIView *topBgV;
  17. @property (weak, nonatomic) IBOutlet UIImageView *bgIV;
  18. @property (weak, nonatomic) IBOutlet UILabel *musicNameL;
  19. @property (weak, nonatomic) IBOutlet UILabel *singerL;
  20. @property (weak, nonatomic) IBOutlet UILabel *timeL;
  21. @property (weak, nonatomic) IBOutlet UIButton *useBtn; //收藏按钮
  22. @property (weak, nonatomic) IBOutlet UIButton *StateBtn; //音乐播放状态
  23. @property (weak, nonatomic) IBOutlet UIButton *startRecoedBtn; //开始录制
  24. @property(nonatomic,copy)MusicRecordBlock recordEvent; //开始录制回调
  25. @property(nonatomic,copy)MusicDownLoadResault rsEvent; //音乐下载事件
  26. /** 收藏 */
  27. - (IBAction)clickUseBtn:(UIButton *)sender;
  28. /** 开始录制 */
  29. - (IBAction)clickStartRecordBtn:(UIButton *)sender;
  30. +(MusicCell*)cellWithTab:(UITableView *)tableView andIndexPath:(NSIndexPath*)indexPath;
  31. -(void)musicDownLoad;
  32. @end