Conforms to | NSObject |
Declared in | INKPresentable.h |
Overview
A protocol that indicates a class represents a presenter object that can render a modal view controller to perform an action.
Tasks
-
– canPerformAction:
Check whether or not the presenter is available to perform a given action
required method -
– performAction:params:inViewController:
Present a modal view controller to perform some action.
required method
Instance Methods
canPerformAction: 
- (BOOL)canPerformAction:(NSString *)action
Discussion
Check whether or not the presenter is available to perform a given action
Parameters
- action
The action to perform
Return Value
BOOL Whether or not the presenter is capable of performing the given action.
Declared In
INKPresentable.h
performAction:params:inViewController: 
- (void)performAction:(NSString *)action params:(NSDictionary *)params inViewController:(UIViewController *)presentingViewController
Discussion
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.
Parameters
- action
A string representing an action to perform
- params
A dictionary of parameters the action takes
- presentingViewController
A view controller to modally present the new view controller on. Presumably, subclasses will at some point in this method call presentingViewController’s
presentViewController:animated:completion:
method.
Declared In
INKPresentable.h