CPDFSearchViewCell.swift 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // CPDFSearchViewCell.swift
  3. // ComPDFKit_Tools
  4. //
  5. // Copyright © 2014-2024 PDF Technologies, Inc. All Rights Reserved.
  6. //
  7. // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
  8. // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
  9. // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
  10. // This notice may not be removed from this file.
  11. //
  12. import UIKit
  13. class CPDFSearchViewCell: UITableViewCell {
  14. var contentLabel: UILabel?
  15. override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
  16. super.init(style: style, reuseIdentifier: reuseIdentifier)
  17. let contentLabel = UILabel(frame: self.bounds)
  18. contentLabel.autoresizingMask = [.flexibleWidth, .flexibleHeight]
  19. contentLabel.numberOfLines = 0
  20. self.contentLabel = contentLabel
  21. contentView.addSubview(contentLabel)
  22. }
  23. required init?(coder aDecoder: NSCoder) {
  24. fatalError("init(coder:) has not been implemented")
  25. }
  26. override func awakeFromNib() { super.awakeFromNib()
  27. // Initialization code
  28. }
  29. override func setSelected(_ selected: Bool, animated: Bool) {
  30. super.setSelected(selected, animated: animated)
  31. // Configure the view for the selected state
  32. }
  33. }