开发者

Retain object through UIAlertView/UIActionView dialogs

开发者 https://www.devze.com 2022-12-19 03:04 出处:网络
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

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.)

0

精彩评论

暂无评论...
验证码 换一张
取 消