WorkFlowSearchItemCell.m 760 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // WorkFlowSearchItemCell.m
  3. // smartRhino
  4. //
  5. // Created by Android on 2019/12/17.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import "WorkFlowSearchItemCell.h"
  9. #import "MeetingListModel.h"
  10. @interface WorkFlowSearchItemCell ()
  11. @end
  12. @implementation WorkFlowSearchItemCell
  13. - (void)awakeFromNib {
  14. [super awakeFromNib];
  15. self.itemBtn.layer.cornerRadius = 3.f;
  16. self.itemBtn.clipsToBounds = YES;
  17. }
  18. - (void)setData:(LocationsModel *)model{
  19. [self.itemBtn setTitle:model.Address forState:UIControlStateNormal];
  20. @weakify(self);
  21. [self.itemBtn setAction:^{
  22. @strongify(self);
  23. if (self.selectedBlock) {
  24. self.selectedBlock(model);
  25. }
  26. }];
  27. self.itemBtn.selected = model.isSelect;
  28. }
  29. @end