Retain object through UIAlertView/UIActionView dialogs
I'm working on a local (to the method) custom object and need to display a dialog (UIActionSheet or UIAlertView) to the user. What's the best way to get access to same object when delegate is called after user interacts with the dialog? Any Cocoa tricks besides addi开发者_高级运维ng another instance variable to current class?
One way is to use "Associated Objects". (but you can't test it in simulator.)
精彩评论