add authentication method selection UI

This commit is contained in:
Bob Sun 2017-01-25 18:28:37 +08:00
parent fcef83277f
commit cc7a53781c
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
9 changed files with 273 additions and 7 deletions

View file

@ -0,0 +1,30 @@
//
// GitRepositoryAuthenticationSettingTableViewController.swift
// pass
//
// Created by Mingshen Sun on 25/1/2017.
// Copyright © 2017 Bob Sun. All rights reserved.
//
import UIKit
class GitRepositoryAuthenticationSettingTableViewController: UITableViewController {
var selectedMethod: String?
@IBOutlet weak var sshKeyCell: UITableViewCell!
@IBOutlet weak var passwordCell: UITableViewCell!
override func viewDidLoad() {
super.viewDidLoad()
switch selectedMethod! {
case "Password":
passwordCell.accessoryType = UITableViewCellAccessoryType.checkmark
case "SSH Key":
sshKeyCell.accessoryType = UITableViewCellAccessoryType.checkmark
default:
break
}
}
}