Commit 7e49d2c4 by Dima Bart

Make outlets private.

parent 354c58f1
......@@ -29,8 +29,8 @@ import Buy
class LoginViewController: UITableViewController {
@IBOutlet weak var emailField: UITextField!
@IBOutlet weak var passwordField: UITextField!
@IBOutlet private weak var emailField: UITextField!
@IBOutlet private weak var passwordField: UITextField!
var email: String { return self.emailField.text ?? "" }
var password: String { return self.passwordField.text ?? "" }
......
......@@ -29,11 +29,11 @@ import Buy
class SignupViewController: UITableViewController {
@IBOutlet weak var firstNameField: UITextField!
@IBOutlet weak var lastNameField: UITextField!
@IBOutlet weak var emailField: UITextField!
@IBOutlet weak var passwordField: UITextField!
@IBOutlet weak var passwordConfirmField: UITextField!
@IBOutlet private weak var firstNameField: UITextField!
@IBOutlet private weak var lastNameField: UITextField!
@IBOutlet private weak var emailField: UITextField!
@IBOutlet private weak var passwordField: UITextField!
@IBOutlet private weak var passwordConfirmField: UITextField!
var firstName: String { return self.firstNameField.text ?? "" }
var lastName: String { return self.lastNameField.text ?? "" }
......@@ -62,7 +62,7 @@ class SignupViewController: UITableViewController {
// MARK: - UITableViewDelegate -
//
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
if indexPath.section == 1 {
if indexPath.section == 2 {
if !self.email.isEmpty &&
!self.password.isEmpty &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment