Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top