Called dismiss method in touched ended, with performSelectorOnMainThread
. issue solved.
Hittest and UIView Animations
-
04-06-2022 - |
Pergunta
I am using - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
to call a method to animatedly dismiss a view.
My dismiss method animates perfectly when called directly but not from within hittest.
I've even tried to ensure the dismiss is called on the main thread using this:
[self performSelectorOnMainThread:@selector(dismiss) withObject:nil waitUntilDone:YES];
inside the hittest method.
Any ideas?
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow