ScannerApp-Swift Documentation

Class Configuration​View​Controller

class ConfigurationViewController: UIViewController  

manage the configuration activity for the app

%71 ConfigurationViewController ConfigurationViewController UITextFieldDelegate UITextFieldDelegate ConfigurationViewController->UITextFieldDelegate UIViewController UIViewController ConfigurationViewController->UIViewController

Conforms To

UITextFieldDelegate
UIViewController

Properties

first​Name​Text​Field

@IBOutlet weak var firstNameTextField: UITextField! 

last​Name​Text​Field

@IBOutlet weak var lastNameTextField: UITextField! 

host​Text​Field

@IBOutlet weak var hostTextField: UITextField! 

debug​Mode​Switch

@IBOutlet weak var debugModeSwitch: UISwitch! 

delete​Enable​Switch

@IBOutlet weak var deleteEnableSwitch: UISwitch! 

Methods

view​Did​Load()

override func viewDidLoad()  

load the UI for the configuration activity

debug​Mode​Switch​Value​Changed(_:​)

@IBAction func debugModeSwitchValueChanged(_ sender: Any)  

delete​Enable​Switch​Value​Changed(_:​)

@IBAction func deleteEnableSwitchValueChanged(_ sender: Any)  

text​Field​Did​End​Editing(_:​)

func textFieldDidEndEditing(_ textField: UITextField)  

Save user input data such as user name and host

text​Field​Should​Return(_:​)

func textFieldShouldReturn(_ textField: UITextField) -> Bool  

dismiss keyboard when user finishes input data