Edit read

This commit is contained in:
Ivan Zinovyev 2016-12-20 17:33:45 +03:00
parent 0c9dbea890
commit 6549e0689e
3 changed files with 2 additions and 3 deletions

View File

@ -29,25 +29,24 @@ textField.placeholder = "Enter something"
### Simple type
By default you use simple type. It is just a text field.
![Alt text](/Screensoths/simple1.png?raw=true) ![Alt text](/Screensoths/simple2.png?raw=true)
### Password type
In order to use UIAnimatedTextField for password input, specify its type as .password
```swift
textField.type = .password
end
```
### Date type
In order to use UIAnimatedTextField for date input, specify its type as .date
```swift
textField.type = .date
end
```
Also you can set date format and done button title:
```swift
// "Done" by default
textField.doneTitle = "Ok"
// dd/MM/YYYY" by default
// "dd/MM/YYYY" by default
textField.dateFormat = "dd MMMM YYYY"
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB