SurveyTextView Class Reference
| Inherits from | UITextView |
| Declared in | SurveyTextView.h |
Overview
SurveyTextView is a subclass of UITextView, designed to work with SurveyForms and provide block based delegate methods.
Tasks
TextField for use with Survey forms.
-
validationBlockThe block used to validate the value of a field, when defined in a subclass.
property -
didBeginEditingCallback when a fields
propertybegin editingdelegate is triggered. -
didEndEditingCallback when a fields
propertyend editingdelegate is triggered. -
shouldBeginEditingCallback when a fields
propertyshould begin editingdelegate is triggered. -
shouldEndEditingCallback when a fields
propertyshould end editingdelegate is triggered. -
shouldChangeCharactersInRangeCallback when a fields
propertyshould change characters in rangedelegate is triggered. -
shouldClearCallback when a fields
propertyshould cleardelegate is triggered. -
shouldReturnCallback when a fields
propertyshould returndelegate is triggered. -
onErrorCallback that is triggered when the field fails validation.
property -
didChangeCallback when a fields
propertydid changedelegate is triggered. -
didChangeSelectionCallback when a fields
propertydid change selectiondelegate is triggered. -
formAccess to the fields parent form.
property -
placeholderThe placeholder value used when the TextView is empty.
property -
titleField title
property -
validationOptionsArray of strings that define what validation to use on the field’s value.
property -
errorMessagesDictionary of messages to use with specific validation types.
property -
errorsA list of errors the field has.
property -
– isValidChecks and returns if the field’s value passes it’s provided validation types.
Properties
didBeginEditing
Callback when a fields begin editing delegate is triggered.
@property (copy, nonatomic) SurveyTextFieldDidBlock didBeginEditingDiscussion
Callback when a fields begin editing delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.hdidChange
Callback when a fields did change delegate is triggered.
@property (copy, nonatomic) SurveyTextFieldDidBlock didChangeDiscussion
Callback when a fields did change delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.hdidChangeSelection
Callback when a fields did change selection delegate is triggered.
@property (copy, nonatomic) SurveyTextFieldDidBlock didChangeSelectionDiscussion
Callback when a fields did change selection delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.hdidEndEditing
Callback when a fields end editing delegate is triggered.
@property (copy, nonatomic) SurveyTextFieldDidBlock didEndEditingDiscussion
Callback when a fields end editing delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.herrorMessages
Dictionary of messages to use with specific validation types.
@property (strong, nonatomic) NSMutableDictionary *errorMessagesDiscussion
Dictionary of messages to use with specific validation types.
@discussion Uses the format: @{SurveyValidationRequired : @“Oh, this field is required”}
Declared In
SurveyTextView.herrors
A list of errors the field has.
@property (readonly, nonatomic) NSDictionary *errorsDiscussion
A list of errors the field has.
Declared In
SurveyTextView.hform
Access to the fields parent form.
@property (strong, nonatomic) SurveyForm *formDiscussion
Access to the fields parent form.
Declared In
SurveyTextView.honError
Callback that is triggered when the field fails validation.
@property (copy, nonatomic) SurveyOnFieldErrorBlock onErrorDiscussion
Callback that is triggered when the field fails validation.
Declared In
SurveyTextView.hplaceholder
The placeholder value used when the TextView is empty.
@property (copy, nonatomic) NSString *placeholderDiscussion
The placeholder value used when the TextView is empty.
Declared In
SurveyTextView.hshouldBeginEditing
Callback when a fields should begin editing delegate is triggered.
@property (copy, nonatomic) SurveyTextFieldShouldBlock shouldBeginEditingDiscussion
Callback when a fields should begin editing delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.hshouldChangeCharactersInRange
Callback when a fields should change characters in range delegate is triggered.
@property (copy, nonatomic) SurveyShouldChangeBlock shouldChangeCharactersInRangeDiscussion
Callback when a fields should change characters in range delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.hshouldClear
Callback when a fields should clear delegate is triggered.
@property (copy, nonatomic) SurveyTextFieldShouldBlock shouldClearDiscussion
Callback when a fields should clear delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.hshouldEndEditing
Callback when a fields should end editing delegate is triggered.
@property (copy, nonatomic) SurveyTextFieldShouldBlock shouldEndEditingDiscussion
Callback when a fields should end editing delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.hshouldReturn
Callback when a fields should return delegate is triggered.
@property (copy, nonatomic) SurveyTextFieldShouldBlock shouldReturnDiscussion
Callback when a fields should return delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.htitle
Field title
@property (copy, nonatomic) NSString *titleDiscussion
Field title
Declared In
SurveyTextView.hvalidationBlock
The block used to validate the value of a field, when defined in a subclass.
@property (copy, nonatomic) SurveyValidateFieldBlock validationBlockDiscussion
The block used to validate the value of a field, when defined in a subclass.
@discussion Use for one off validations in property overrides in form subclass.
Declared In
SurveyTextView.h