SCViewControllerActions
@interface SCViewControllerActions : NSObject
This class hosts a set of view controller action blocks. Once an action is set to a desired code block, it will execute the block as soon as the action occurs.
SCViewControllerAction_Block syntax: action = ^(SCViewController *viewController) { // Your code here };
-
Action gets called when the view controller’s view has been loaded.
Declaration
Objective-C
@property (nonatomic, copy) SCViewControllerAction_Block viewDidLoad;
-
Action gets called when the view controller is about to appear.
Declaration
Objective-C
@property (nonatomic, copy) SCViewControllerAction_Block willAppear;
-
Action gets called when the view controller has appeared.
Declaration
Objective-C
@property (nonatomic, copy) SCViewControllerAction_Block didAppear;
-
Action gets called when the view controller is about to disappear.
Declaration
Objective-C
@property (nonatomic, copy) SCViewControllerAction_Block willDisappear;
-
Action gets called when the view controller has disappeared.
Declaration
Objective-C
@property (nonatomic, copy) SCViewControllerAction_Block didDisappear;
-
Action gets called when the view controller is about to appear for the first time.
Declaration
Objective-C
@property (nonatomic, copy) SCViewControllerAction_Block willPresent;
-
Action gets called when the view controller has appeared for the first time.
Declaration
Objective-C
@property (nonatomic, copy) SCViewControllerAction_Block didPresent;
-
Action gets called when the view controller is about to be dismissed.
Declaration
Objective-C
@property (nonatomic, copy) SCViewControllerAction_Block willDismiss;
-
Action gets called when the view controller has been dismissed.
Declaration
Objective-C
@property (nonatomic, copy) SCViewControllerAction_Block didDismiss;
-
Action gets called when the view controller’s Cancel button has been tapped. Return FALSE to ignore the tap, otherwise return TRUE.
Example: action = ^BOOL(SCViewController *)viewController { // your code here
return TRUE; // accept the tap }
Declaration
Objective-C
@property (nonatomic, copy) SCViewControllerButtonTappedAction_Block cancelButtonTapped;
-
Action gets called when the view controller’s Done button has been tapped. Return FALSE to ignore the tap, otherwise return TRUE.
Example: action = ^BOOL(SCViewController *)viewController { // your code here
return TRUE; // accept the tap }
Declaration
Objective-C
@property (nonatomic, copy) SCViewControllerButtonTappedAction_Block doneButtonTapped;
-
Action gets called when the view controller’s Edit button has been tapped. Return FALSE to ignore the tap, otherwise return TRUE.
Example: action = ^BOOL(SCViewController *)viewController { // your code here
return TRUE; // accept the tap }
Declaration
Objective-C
@property (nonatomic, copy) SCViewControllerButtonTappedAction_Block editButtonTapped;