Check that the parameter of labelReturnedToHomecalled when scrollCompletionBlock is executed is true Changed to finished value of animation result.
This is because when labelReturnedToHome was extended by override, it was necessary to determine whether the callback occurred during the animation or that the animation ended normally.
I added a process to get a new character string when scrolling was completely completed, but when text was set (animation stopped midway), labelReturnedToHome was called, so I could not control what I wanted to do did.
Check that the parameter of
labelReturnedToHome
called whenscrollCompletionBlock
is executed istrue
Changed tofinished
value of animation result.This is because when
labelReturnedToHome
was extended byoverride
, it was necessary to determine whether the callback occurred during the animation or that the animation ended normally.I added a process to get a new character string when scrolling was completely completed, but when
text
was set (animation stopped midway),labelReturnedToHome
was called, so I could not control what I wanted to do did.