SideSlipBaseTableViewCell.m 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // SideSlipBaseTableViewCell.m
  3. // ZYSideSlipFilter
  4. //
  5. // Created by zhiyi on 16/10/14.
  6. // Copyright © 2016年 zhiyi. All rights reserved.
  7. //
  8. #import "SideSlipBaseTableViewCell.h"
  9. #import "SideSlipConfig.h"
  10. #pragma clang diagnostic push
  11. #pragma clang diagnostic ignored "-Wincomplete-implementation"
  12. @implementation SideSlipBaseTableViewCell
  13. #pragma clang diagnostic pop
  14. + (NSString *)cellReuseIdentifier {
  15. NSAssert(NO, @"\nERROR: Must realize this function in subClass %s", __func__);
  16. return nil;
  17. }
  18. + (instancetype)createCellWithIndexPath:(NSIndexPath *)indexPath {
  19. NSAssert(NO, @"\nERROR: Must realize this function in subClass %s", __func__);
  20. return nil;
  21. }
  22. - (void)updateCellWithModel:(SideSlipModel *__autoreleasing *)model
  23. indexPath:(NSIndexPath *)indexPath {
  24. NSAssert(NO, @"\nERROR: Must realize this function in subClass %s", __func__);
  25. }
  26. - (void)awakeFromNib {
  27. [super awakeFromNib];
  28. [self registerNotification];
  29. }
  30. - (void)dealloc {
  31. [self resignNotification];
  32. }
  33. - (void)resetData {
  34. }
  35. - (void)updateFrame:(CGFloat)w{
  36. }
  37. - (void)registerNotification {
  38. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(resetData) name:FILTER_NOTIFICATION_NAME_DID_RESET_DATA object:nil];
  39. }
  40. - (void)resignNotification {
  41. [[NSNotificationCenter defaultCenter] removeObserver:self];
  42. }
  43. @end