A protocol that indicates a class represents a presenter object that can render a modal view controller to perform an action.
- (BOOL)canPerformAction:(NSString *)action
Check whether or not the presenter is available to perform a given action
The action to perform
BOOL Whether or not the presenter is capable of performing the given action.
- (void)performAction:(NSString *)action params:(NSDictionary *)params inViewController:(UIViewController *)presentingViewController
Present a modal view controller to perform some action.
Warning: It is expected that after this class presents a modal view controller in this method, it will also be responsible for dismissing it when appropriate.
A string representing an action to perform
A dictionary of parameters the action takes
A view controller to modally present the new view controller on. Presumably, subclasses will at some point in this method call presentingViewController’s