SCTableViewControllerActions Class Reference
Inherits from | NSObject |
Declared in | SCTableViewControllerActions.h |
Overview
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.
SCTableViewControllerAction_Block syntax:
action = ^(SCTableViewController *viewController)
{
// Your code here
};
Tasks
-
willAppear
Action gets called when the view controller is about to appear.
property -
didAppear
Action gets called when the view controller has appeared.
property -
willDisappear
Action gets called when the view controller is about to disappear.
property -
didDisappear
Action gets called when the view controller has disappeared.
property -
willPresent
Action gets called when the view controller is about to appear for the first time.
property -
didPresent
Action gets called when the view controller has appeared for the first time.
property -
willDismiss
Action gets called when the view controller is about to be dismissed.
property -
didDismiss
Action gets called when the view controller has been dismissed.
property -
cancelButtonTapped
Action gets called when the view controller’s Cancel button has been tapped. Return FALSE to ignore the tap, otherwise return TRUE.
property -
doneButtonTapped
Action gets called when the view controller’s Done button has been tapped. Return FALSE to ignore the tap, otherwise return TRUE.
property -
editButtonTapped
Action gets called when the view controller’s Edit button has been tapped. Return FALSE to ignore the tap, otherwise return TRUE.
property
Properties
cancelButtonTapped
Action gets called when the view controller’s Cancel button has been tapped. Return FALSE to ignore the tap, otherwise return TRUE.
@property (nonatomic, copy) SCTableViewControllerButtonTappedAction_Block cancelButtonTapped
Discussion
Example:
action = ^BOOL(SCTableViewController *)viewController
{
// your code here
return TRUE; // accept the tap
}
Declared In
SCTableViewControllerActions.h
didAppear
Action gets called when the view controller has appeared.
@property (nonatomic, copy) SCTableViewControllerAction_Block didAppear
Declared In
SCTableViewControllerActions.h
didDisappear
Action gets called when the view controller has disappeared.
@property (nonatomic, copy) SCTableViewControllerAction_Block didDisappear
Declared In
SCTableViewControllerActions.h
didDismiss
Action gets called when the view controller has been dismissed.
@property (nonatomic, copy) SCTableViewControllerAction_Block didDismiss
Declared In
SCTableViewControllerActions.h
didPresent
Action gets called when the view controller has appeared for the first time.
@property (nonatomic, copy) SCTableViewControllerAction_Block didPresent
Declared In
SCTableViewControllerActions.h
doneButtonTapped
Action gets called when the view controller’s Done button has been tapped. Return FALSE to ignore the tap, otherwise return TRUE.
@property (nonatomic, copy) SCTableViewControllerButtonTappedAction_Block doneButtonTapped
Discussion
Example:
action = ^BOOL(SCTableViewController *)viewController
{
// your code here
return TRUE; // accept the tap
}
Declared In
SCTableViewControllerActions.h
editButtonTapped
Action gets called when the view controller’s Edit button has been tapped. Return FALSE to ignore the tap, otherwise return TRUE.
@property (nonatomic, copy) SCTableViewControllerButtonTappedAction_Block editButtonTapped
Discussion
Example:
action = ^BOOL(SCTableViewController *)viewController
{
// your code here
return TRUE; // accept the tap
}
Declared In
SCTableViewControllerActions.h
willAppear
Action gets called when the view controller is about to appear.
@property (nonatomic, copy) SCTableViewControllerAction_Block willAppear
Declared In
SCTableViewControllerActions.h
willDisappear
Action gets called when the view controller is about to disappear.
@property (nonatomic, copy) SCTableViewControllerAction_Block willDisappear
Declared In
SCTableViewControllerActions.h