using specific cell for password generator

This commit is contained in:
Bob Sun 2017-02-11 21:37:22 +08:00
parent c0fe4711ba
commit 89cef49281
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
4 changed files with 100 additions and 3 deletions

View file

@ -0,0 +1,28 @@
//
// FillPasswordTableViewCell.swift
// pass
//
// Created by Mingshen Sun on 11/2/2017.
// Copyright © 2017 Bob Sun. All rights reserved.
//
import UIKit
class FillPasswordTableViewCell: UITableViewCell {
@IBOutlet weak var contentTextField: UITextField!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
@IBAction func generatePassword(_ sender: UIButton) {
contentTextField.text = "4-r4d0m-p455w0rd"
}
}