How to add userInfo to a UIAlertView?
You could try subclassing UIAlertView to add the field, or store a reference in your delegate class instead. But the most general way to attach any object to any other object is to use objc_setAssociatedObject. To do so, you have to #import <objc/runtime.h>, and you need an arbitrary void * that is used as a … Read more