MOGuildInputBaseCell.m 994 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // MOGuildInputBaseCell.m
  3. // MiMoLive
  4. //
  5. // Created by SuperC on 2023/10/26.
  6. //
  7. #import "MOGuildInputBaseCell.h"
  8. @implementation MOGuildInputBaseCell
  9. - (void)awakeFromNib {
  10. [super awakeFromNib];
  11. // Initialization code
  12. //Cell 去除选中效果
  13. self.selectionStyle = UITableViewCellSelectionStyleNone;
  14. self.backgroundColor = [UIColor clearColor];
  15. self.inputTxf.delegate = self;
  16. self.inputTxf.placeholder = @"Please Enter";
  17. self.titleLab.font = [MOTextTools getTheFontWithSize:16.0 AndFontName:kNormalContentFontStr];
  18. self.inputTxf.font = [MOTextTools getTheFontWithSize:16.0 AndFontName:kNormalContentFontStr];
  19. }
  20. - (void)textFieldDidEndEditing:(UITextField *)textField
  21. {
  22. if (self.returnTxFText)
  23. {
  24. self.returnTxFText(textField.text);
  25. }
  26. }
  27. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  28. [super setSelected:selected animated:animated];
  29. // Configure the view for the selected state
  30. }
  31. @end