update UI of add password page
This commit is contained in:
parent
64789aa65e
commit
ae4ad4837e
8 changed files with 131 additions and 58 deletions
32
pass/Views/TitleTextFieldTableViewCell.swift
Normal file
32
pass/Views/TitleTextFieldTableViewCell.swift
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
//
|
||||
// TextFieldTableViewCell.swift
|
||||
// pass
|
||||
//
|
||||
// Created by Mingshen Sun on 10/2/2017.
|
||||
// Copyright © 2017 Bob Sun. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class TitleTextFieldTableViewCell: UITableViewCell {
|
||||
|
||||
@IBOutlet weak var titleLabel: UILabel!
|
||||
@IBOutlet weak var contentTextField: UITextField!
|
||||
|
||||
override func awakeFromNib() {
|
||||
super.awakeFromNib()
|
||||
// Initialization code
|
||||
titleLabel.isUserInteractionEnabled = true
|
||||
let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(tap(_:)))
|
||||
titleLabel.addGestureRecognizer(tapGestureRecognizer)
|
||||
}
|
||||
|
||||
func tap(_ sender: Any?) {
|
||||
contentTextField.becomeFirstResponder()
|
||||
}
|
||||
|
||||
override func setSelected(_ selected: Bool, animated: Bool) {
|
||||
super.setSelected(selected, animated: animated)
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue