You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add WSMorseGestureRecognizer as "Custom Gesture" to view in storyboard/xib
set delegate, target/action
set reference to your code as outlet
configure gesture in code or in InterfaceBuilder via keyPath (e.g. stringToRecignize, characterParseDelay, wordParseDelay)
expected:
if entered/touched morse code matches with "stringToRecignize", the calback/action should be triggered
issue:
no morse code is recognized, any callback (morsecode, character, word) return empty string, action is never triggered
analysis:
mutable array "currentSequence" is not initialized
although the UIGestureRecognizer is no NSCoder conforming UI class it is used in InterfaceBuilder
you have to implement NSCoder initialiser "-[NSCoder initWithCoder:]" or at least override "-[NSObject init]" where you should setup your properties; at least "currentSequence"
best regards, Oliver
The text was updated successfully, but these errors were encountered:
Hello developers,
workflow to reproduce issue:
expected:
issue:
analysis:
best regards, Oliver
The text was updated successfully, but these errors were encountered: