Dismissing current UIActionSheet
Is there a way t开发者_开发百科o 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.
You shouldn't - you create the UIActionSheet, therefore you can keep a reference to it to dismiss it later.
精彩评论