David Lawson
David Lawson

Reputation: 7922

Dismissing current UIActionSheet

Is there a way to dismiss the current UIActionSheet when you don't have access to the variable that holds it?

Apparently it makes its own window and makes it the key window, but [[[UIApplication sharedApplication] keyWindow]resignKeyWindow] doesn't seem to be working.

Upvotes: 0

Views: 384

Answers (1)

David Lawson
David Lawson

Reputation: 7922

You shouldn't - you create the UIActionSheet, therefore you can keep a reference to it to dismiss it later.

Upvotes: 1

Related Questions