STPMultiFormTextField
Objective-C
@interface STPMultiFormTextField : UIView <STPFormTextFieldContainer>
Swift
class STPMultiFormTextField : UIView, STPFormTextFieldContainer
STPMultiFormTextField is a lightweight UIView that wraps a collection of STPFormTextFields and can automatically move to the next form field when one is completed.
-
The collection of STPFormTextFields that this instance manages.
Declaration
Objective-C
@property (nonatomic) NSArray<STPFormTextField *> *_Nonnull formTextFields;
Swift
var formTextFields: [STPFormTextField] { get set }
-
The STPMultiFormTextField’s delegate.
Declaration
Objective-C
@property (nonatomic, weak) id<STPMultiFormFieldDelegate> _Nullable multiFormFieldDelegate;
Swift
weak var multiFormFieldDelegate: STPMultiFormFieldDelegate? { get set }
-
Calling this method will make the next incomplete STPFormTextField in
formTextFields
become the first responder. If all of the form text fields are already complete, then the last field informTextFields
will become the first responder.Declaration
Objective-C
- (void)focusNextFormField;
Swift
func focusNextForm()