Class
PopUpView
class PopUpView: UIView
Pop up view to retrieve user and scene info for the current scene
Relationships
Conforms To
UIPickerViewDataSource
UIPickerViewDelegate
UITextFieldDelegate
UIView
Initializers
init()
init()
init?(coder:)
required init?(coder: NSCoder)
Properties
sceneTypes
let sceneTypes = Constants.sceneTypes
firstName
var firstName: String = ""
lastName
var lastName: String = ""
userInputDescription
var userInputDescription: String = ""
sceneTypeIndex
var sceneTypeIndex = 0
firstNameLabel
let firstNameLabel: UILabel
lastNameLabel
let lastNameLabel: UILabel
descriptionLabel
let descriptionLabel: UILabel
firstNameTextField
lazy var firstNameTextField: UITextField
lastNameTextField
lazy var lastNameTextField: UITextField
descriptionTextField
lazy var descriptionTextField: UITextField
sceneTypePickerView
lazy var sceneTypePickerView: UIPickerView
delegate
weak var delegate: CameraViewControllerPopUpViewDelegate?
cancelButton
let cancelButton: UIButton
startButton
let startButton: UIButton
Methods
cancelButtonTapped()
@objc func cancelButtonTapped()
startButtonTapped()
@objc func startButtonTapped()
setupViews()
func setupViews()
textFieldDidBeginEditing(_:)
func textFieldDidBeginEditing(_ textField: UITextField)
disable start button when editing text field
textFieldDidEndEditing(_:)
func textFieldDidEndEditing(_ textField: UITextField)
Store all text field once user is done editing
textFieldShouldReturn(_:)
func textFieldShouldReturn(_ textField: UITextField) -> Bool
numberOfComponents(in:)
func numberOfComponents(in pickerView: UIPickerView) -> Int
pickerView(_:numberOfRowsInComponent:)
func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int
pickerView(_:titleForRow:forComponent:)
func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String?
pickerView(_:didSelectRow:inComponent:)
func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int)