Pregunta

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?

¿Fue útil?

Solución

Called dismiss method in touched ended, with performSelectorOnMainThread. issue solved.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top