ScannerApp-Swift Documentation

Class Pop​UpView

class PopUpView: UIView  

Pop up view to retrieve user and scene info for the current scene

%87 PopUpView PopUpView UITextFieldDelegate UITextFieldDelegate PopUpView->UITextFieldDelegate UIView UIView PopUpView->UIView UIPickerViewDataSource UIPickerViewDataSource PopUpView->UIPickerViewDataSource UIPickerViewDelegate UIPickerViewDelegate PopUpView->UIPickerViewDelegate

Conforms To

UIPickerViewDataSource
UIPickerViewDelegate
UITextFieldDelegate
UIView

Initializers

init()

init()  

init?(coder:​)

required init?(coder: NSCoder)  

Properties

scene​Types

let sceneTypes = Constants.sceneTypes

first​Name

var firstName: String = ""

last​Name

var lastName: String = ""

user​Input​Description

var userInputDescription: String = ""

scene​Type​Index

var sceneTypeIndex = 0

first​Name​Label

let firstNameLabel: UILabel  

last​Name​Label

let lastNameLabel: UILabel  

description​Label

let descriptionLabel: UILabel  

first​Name​Text​Field

lazy var firstNameTextField: UITextField  

last​Name​Text​Field

lazy var lastNameTextField: UITextField  

description​Text​Field

lazy var descriptionTextField: UITextField  

scene​Type​Picker​View

lazy var sceneTypePickerView: UIPickerView  

cancel​Button

let cancelButton: UIButton  

start​Button

let startButton: UIButton  

Methods

cancel​Button​Tapped()

@objc func cancelButtonTapped()  

start​Button​Tapped()

@objc func startButtonTapped()  

setup​Views()

func setupViews()  

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

func textFieldDidBeginEditing(_ textField: UITextField)  

disable start button when editing text field

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

func textFieldDidEndEditing(_ textField: UITextField)  

Store all text field once user is done editing

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

func textFieldShouldReturn(_ textField: UITextField) -> Bool  

number​OfComponents(in:​)

func numberOfComponents(in pickerView: UIPickerView) -> Int  

picker​View(_:​number​OfRows​InComponent:​)

func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int  

picker​View(_:​title​For​Row:​for​Component:​)

func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String?  

picker​View(_:​did​Select​Row:​in​Component:​)

func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int)