Кто может помочь с UIPickerView? How to detect is UI Picker View scrolling


#1

Im using AVSpeechSynthesizer, playing text from UIPickerView if I press play button firs I do picker.isUserInteractionEnabled = false everything is ok and in the end of play I do picker.isUserInteractionEnabled = true but if I do scroll picker first and fast press play button sometimes I get this is error

Terminating app due to uncaught exception ‘NSRangeException’, reason: ‘NSMutableRLEArray objectAtIndex:effectiveRange:: Out of bounds’

my idea is check if picker scrolling - hide play button.

How to detect is UIPickerView scrolling?