PSPDFTextFieldFormElementView


@interface PSPDFTextFieldFormElementView
    : PSPDFFormElementView <UITextViewDelegate, UITextFieldDelegate>

Free Text View. Allows inline text editing.

  • Start editing, shows the keyboard.

    Declaration

    Objective-C

    - (void)beginEditing;

    Swift

    func beginEditing()
  • Ends editing, hides the keyboard.

    Declaration

    Objective-C

    - (void)endEditing;

    Swift

    func endEditing()
  • Internally used textView. Only valid during begin and before endEditing.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) UITextView *textView;

    Swift

    var textView: UITextView? { get }
  • Internally used textField. Only valid during begin and before endEditing.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) UITextField *textField;

    Swift

    var textField: UITextField? { get }
  • Is this a multiline text view?

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL isMultiline;

    Swift

    var isMultiline: Bool { get }
  • Is this a secure text view for displaying passwords?

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL isPassword;

    Swift

    var isPassword: Bool { get }
  • Whether view is in edit mode.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL editMode;

    Swift

    var editMode: Bool { get set }
  • The dragging view, if we are currently dragged.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) PSPDFResizableView *_Nullable resizableView;

    Swift

    weak var resizableView: PSPDFResizableView? { get set }
  • Creates a textView on the fly once we enter edit mode.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UITextView *_Nonnull setTextViewForEditing;

    Swift

    var setTextViewForEditing: UITextView { get }