PSTableCell.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. @class PSSpecifier;
  2. typedef NS_ENUM(NSInteger, PSCellType) {
  3. PSGroupCell,
  4. PSLinkCell,
  5. PSLinkListCell,
  6. PSListItemCell,
  7. PSTitleValueCell,
  8. PSSliderCell,
  9. PSSwitchCell,
  10. PSStaticTextCell,
  11. PSEditTextCell,
  12. PSSegmentCell,
  13. PSGiantIconCell,
  14. PSGiantCell,
  15. PSSecureEditTextCell,
  16. PSButtonCell,
  17. PSEditTextViewCell
  18. };
  19. @interface PSTableCell : UITableViewCell
  20. + (PSCellType)cellTypeFromString:(NSString *)cellType;
  21. - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier specifier:(PSSpecifier *)specifier;
  22. - (void)refreshCellContentsWithSpecifier:(PSSpecifier *)specifier;
  23. - (void)setSeparatorStyle:(UITableViewCellSeparatorStyle)style;
  24. @property (nonatomic, retain) PSSpecifier *specifier;
  25. @property (nonatomic) PSCellType type;
  26. @property (nonatomic, retain) id target;
  27. @property (nonatomic) SEL action;
  28. @property (nonatomic, retain) id cellTarget;
  29. @property (nonatomic) SEL cellAction;
  30. @property (nonatomic) BOOL cellEnabled;
  31. @property (nonatomic, retain) UIImage *icon;
  32. - (UIImage *)getLazyIcon;
  33. @property (nonatomic, retain, readonly) UIImage *blankIcon;
  34. @property (nonatomic, retain, readonly) NSString *lazyIconAppID;
  35. @property (nonatomic, retain, readonly) UILabel *titleLabel;
  36. @end