support edit password

This commit is contained in:
Bob Sun 2017-02-13 01:15:42 +08:00
parent 41d45bfbf9
commit b2ee8c429f
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
14 changed files with 459 additions and 72 deletions

View file

@ -8,7 +8,7 @@
import UIKit
class FillPasswordTableViewCell: UITableViewCell {
class FillPasswordTableViewCell: ContentTableViewCell {
@IBOutlet weak var contentTextField: UITextField!
override func awakeFromNib() {
@ -25,4 +25,12 @@ class FillPasswordTableViewCell: UITableViewCell {
@IBAction func generatePassword(_ sender: UIButton) {
contentTextField.text = Utils.randomString(length: 16)
}
override func getContent() -> String? {
return contentTextField.text
}
override func setContent(content: String) {
contentTextField.text = content
}
}