So I am not a pro at swift or programming in general but I know most of the basics to it all. I am currently making a project for my Computer Science class and decided to use the "Picker View" in it, it took me a while to understand how to use the pickerData and Delegates, but once I figured it out, I found that after building, when I touch my Picker in the simulator, everything else pauses until the Picker is done moving. In my app, my timer is very important and can't have it pause when the picker is being used. Can someone please explain why this is happening?
class viewcontroller: UIPickerDataSource, UIPickerDelegate
IBOutlet weak var Lap: UIPickerView
func numberOfComponents(in pickerView: UIPickerView) -> Int {
return 1
}
func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
return pickerData.count
}
/
func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? {
return pickerData[row]
}
func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {