SelectionTableViewCell.h 762 B

1234567891011121314151617181920212223242526
  1. //
  2. // SelectionTableViewCell.h
  3. // TTSDemo
  4. //
  5. // Created by lappi on 3/16/16.
  6. // Copyright © 2016 baidu. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class SelectionTableViewCell;
  10. @interface selectionCellContext : NSObject
  11. -(instancetype)initWithName:(NSString*)name;
  12. @property(nonatomic,strong)NSString* itemName;
  13. @property(nonatomic,weak)SelectionTableViewCell* ContextUI;
  14. @property(nonatomic)BOOL isSelected;
  15. -(void)setSelectionState:(BOOL)isSelected;
  16. @end
  17. @interface SelectionTableViewCell : UITableViewCell
  18. @property (nonatomic,weak) selectionCellContext* cellContext;
  19. @property (nonatomic, strong) IBOutlet UILabel *nameLabel;
  20. @property (nonatomic, strong) IBOutlet UIView *SelectionStateView;
  21. -(void)setContext:(selectionCellContext*)ctx;
  22. @end