iPad 4.3 UIButtons not working when animation is animating
-
25-10-2019 - |
Pergunta
I have a button that moves up to the center of the screen. I also have images around the screen that are animating. When you click on the button in iPad 5.0, it works. However, it doesn't even respond to a click or a "Touch Down" event in 4.3. I noticed it only has this problem when there's something animating on the page. Any ideas?
Solução
From UIView Class Reference:
During an animation, user interactions are temporarily disabled for the views being animated. (Prior to iOS 5, user interactions are disabled for the entire application.) If you want users to be able to interact with the views, include the
UIViewAnimationOptionAllowUserInteraction
constant in the options parameter.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow