Item.m 434 B

12345678910111213141516171819202122232425262728
  1. //
  2. // Item.m
  3. //
  4. // Created by tederen on 16/11/19
  5. // Copyright © 2019 tederen. All rights reserved.
  6. //
  7. #import "Item.h"
  8. //#import "Block.h"
  9. @implementation Item
  10. - (NSInteger)cellID {
  11. if (self.ImageUrls.count == 0) {
  12. _cellID = 1;
  13. }else if(self.ImageUrls.count == 1 || self.ImageUrls.count == 2){
  14. _cellID = 2;
  15. }else{
  16. _cellID = 3;
  17. }
  18. return _cellID;
  19. }
  20. #pragma mark:- Constructor
  21. @end