Reputation: 7922
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
Reputation: 7922
You shouldn't - you create the UIActionSheet, therefore you can keep a reference to it to dismiss it later.
Upvotes: 1