SetCell.m 848 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // SetCell.m
  3. // YBVideo
  4. //
  5. // Created by cat on 16/3/13.
  6. // Copyright © 2016年 cat. All rights reserved.
  7. //
  8. #import "SetCell.h"
  9. @implementation SetCell
  10. -(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
  11. self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  12. if (self) {
  13. }
  14. return self;
  15. }
  16. +(SetCell *)cellWithTableView:(UITableView *)tableView{
  17. SetCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SetCell"];
  18. if (!cell) {
  19. cell = [[NSBundle mainBundle]loadNibNamed:@"SetCell" owner:self options:nil].lastObject;
  20. }
  21. return cell;
  22. }
  23. - (IBAction)clickSwitchBtn:(UIButton *)sender {
  24. sender.selected = !sender.selected;
  25. [common saveMsgVoiceSwitch:sender.selected];
  26. }
  27. @end