DailyQuestCell.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // DailyQuestCell.h
  3. // PopupViewWindow
  4. //
  5. // Created by 杨仁伟 on 2017/5/22.
  6. // Copyright © 2017年 yrw. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class BMListModel;
  10. @interface DailyQuestCell : UITableViewCell
  11. //任务名称lbl距离顶部的约束
  12. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *distanceTopConstant;
  13. //图片距离顶部的约束
  14. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgDistanceTopConstant;
  15. //图片
  16. @property (weak, nonatomic) IBOutlet UIImageView *img;
  17. @property (weak, nonatomic) IBOutlet UILabel *imgTitleL;
  18. //任务
  19. @property (weak, nonatomic) IBOutlet UILabel *viewVideoLbl;
  20. //奖励
  21. @property (weak, nonatomic) IBOutlet UILabel *rewardLbl;
  22. //领取按钮
  23. @property (weak, nonatomic) IBOutlet UIButton *receiveBtn;
  24. //领取按钮宽的约束
  25. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *receiveBtnWConstant;
  26. //领取按钮高的约束
  27. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *receiveBtnHconstant;
  28. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *rewardConstraintWidth;
  29. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *receiveBtnConstraints;
  30. @property (nonatomic,copy)void (^ taskBlock)(int btnCount);
  31. - (void)creatCellWithModel:(BMListModel *)listModel andRow:(int)row;
  32. @end