UIAlertView delegate in class method
To handle the UIAlertView (or any others class) delegate in class method just have to change the minus -
to plus +
Example
1 | + (void)someMethod:(NSString *)title withMessage:(NSString *)message |
There is no need to conform to UIAlertViewDelegate protocol, without the statement below will also work.
e.g.
1 | @interface ViewController : UIViewController <UIAlertViewDelegate> |