SliderTableViewCell.h 781 B

123456789101112131415161718192021222324252627
  1. //
  2. // SliderTableViewCell.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 SliderTableViewCell;
  10. @protocol SliderTableViewCellDelegate <NSObject>
  11. -(void)sliderValueChanged:(float)newValue forProperty:(NSString*)propertyID fromSlider:(SliderTableViewCell*)src;
  12. @end
  13. @interface SliderTableViewCell : UITableViewCell
  14. @property (nonatomic)BOOL isContinuous; // continuous stepping or
  15. @property (nonatomic,weak) id<SliderTableViewCellDelegate>delegate;
  16. @property (nonatomic,copy)NSString *PROPERTY_ID;
  17. @property (nonatomic, strong) IBOutlet UILabel *nameLabel;
  18. @property (nonatomic, strong) IBOutlet UILabel *currentValueLabel;
  19. @property (nonatomic, strong) IBOutlet UISlider *valueSlider;
  20. @end