notesCell

class notesCell : UITableViewCell, UITextViewDelegate

Note cell is used for user to put note

  • Undocumented

    Declaration

    Swift

    let defaultString: String

Properties

  • This is a UITextView to put the note

    Declaration

    Swift

    @IBOutlet
    var textView: UITextView!
  • Undocumented

    Declaration

    Swift

    var contentId: Int

Methods

  • Cutomise the cell

    Declaration

    Swift

    func customisation()
  • Set the note cell

    Declaration

    Swift

    func set(text: String, id: Int)

Delegates

  • Tells the delegate that editing of the specified text view has begun.

    Declaration

    Swift

    func textViewDidBeginEditing(_ textView: UITextView)

    Parameters

    textView

    The text view in which editing began.

  • Asks the delegate whether the specified text should be replaced in the text view.

    Declaration

    Swift

    func textView(_ textView: UITextView, shouldChangeTextIn _: NSRange, replacementText _: String) -> Bool

    Parameters

    textView

    The text view containing the changes.

    shouldChangeTextIn

    The current selection range. If the length of the range is 0, range reflects the current insertion point. If the user presses the Delete key, the length of the range is 1 and an empty string object replaces that single character.

    replacementText

    The text to insert.

    Return Value

    true if the old text should be replaced by the new text; false if the replacement operation should be aborted.

  • Tells the delegate that editing of the specified text view has ended.

    Declaration

    Swift

    func textViewDidEndEditing(_ textView: UITextView)

    Parameters

    textView

    The text view in which editing ended.

View Lifecycle

  • Prepares the receiver for service after it has been loaded from an Interface Builder archive, or nib file.

    Declaration

    Swift

    override func awakeFromNib()
  • Prepares a reusable cell for reuse by the table view'€™s delegate.

    Declaration

    Swift

    override func prepareForReuse()