문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top