質問

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