Classes
The following classes are available globally.
-
This class extends the standard
See moreUITextField
widget to provide a realtime “dropdown” menu of possible autocomplete choices (in a table and modal-style screen). The dropdown is always displayed below the text field, and is attached to the main window root view (so it appears over everything else). It is not modal. If the user selects a value from the table, that entire string is entered into the text field, and the dropdown is dismissed. The dropdown is dismissed whenever focus leaves the text item. When focus is set to the text field, the current text is evaluated, and a dropdown may appear, if required. If the autofill functionality is not available, or is explicitly deactivated, the text item behaves exactly like a standardUITextField
. NB: When assigning a delegate, the caller needs to be aUITextFieldDelegate
, even if they are not using any of the delegate functionality. This is because we “piggyback” on the built-in delegate. This also means that the delegate must be anNSObject
.Declaration
Swift
@IBDesignable open class RVS_AutofillTextField : UITextField
extension RVS_AutofillTextField: UITableViewDataSource
extension RVS_AutofillTextField: UITableViewDelegate
-
This is what the protocol needs to provide to the widget. It is one element of an Array. The purpose of this type, is to allow data context to be attached to a value, and to allow the Array type to be extended.
See moreDeclaration
Swift
public class RVS_AutofillTextFieldDataSourceType
extension RVS_AutofillTextFieldDataSourceType: CustomDebugStringConvertible
extension RVS_AutofillTextFieldDataSourceType: CustomStringConvertible
extension RVS_AutofillTextFieldDataSourceType: Equatable
extension RVS_AutofillTextFieldDataSourceType: Comparable