I remember stumbling upon a method that would tell you when a view was ready to respond to touch events (and when it was not)..

Think, as an example, when the app comes into the foreground, the main view is not ready to respond (so if a user touches it, it would react).. as an aside, I know there are event handlers for determining when it is ready.. I'm just using this as an example.. the method I remember was something like

[UIView willBeginRespondingToTouches]

Anyone know the name of the actual method ?

有帮助吗?

解决方案

I think i found it..

[[UIApplication sharedApplication] isIgnoringInteractionEvents]

So it wasnt a method for views, but for the app itself. I'm using this to build a dynamic loading animation class (to intercept when ui is uncontrollably blocked)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top