SCViewControllerDelegate
@protocol SCViewControllerDelegate
This protocol should be adopted by objects that want to mediate as a delegate for SCViewController. All methods for this protocol are optional.
-
Notifies the delegate that the view controller’s view has been loaded.
- - parameter: viewController The view controller informing the delegate of the event.
Declaration
Objective-C
- (void)viewControllerViewDidLoad:(SCViewController *)viewController;
-
Notifies the delegate that the view controller will appear.
- - parameter: viewController The view controller informing the delegate of the event.
Declaration
Objective-C
- (void)viewControllerWillAppear:(SCViewController *)viewController;
-
Notifies the delegate that the view controller has appeared.
- - parameter: viewController The view controller informing the delegate of the event.
Declaration
Objective-C
- (void)viewControllerDidAppear:(SCViewController *)viewController;
-
Notifies the delegate that the view controller will disappear.
- - parameter: viewController The view controller informing the delegate of the event.
Declaration
Objective-C
- (void)viewControllerWillDisappear:(SCViewController *)viewController;
-
Notifies the delegate that the view controller has disappeared.
- - parameter: viewController The view controller informing the delegate of the event.
Declaration
Objective-C
- (void)viewControllerDidDisappear:(SCViewController *)viewController;
-
Notifies the delegate that the view controller will be presented.
- - parameter: viewController The view controller informing the delegate of the event.
Declaration
Objective-C
- (void)viewControllerWillPresent:(SCViewController *)viewController;
-
Notifies the delegate that the view controller has been presented.
- - parameter: viewController The view controller informing the delegate of the event.
Declaration
Objective-C
- (void)viewControllerDidPresent:(SCViewController *)viewController;
-
Asks the delegate if the view controller should be dismissed.
- - parameter: viewController The view controller informing the delegate of the event.
- - parameter: cancelTapped TRUE if Cancel button has been tapped to dismiss the view controller.
- - parameter: doneTapped TRUE if Done button has been tapped to dismiss the view controller.
- - returns: Retrun TRUE to have the view controller dismissed, otherwise return FALSE.
Declaration
Objective-C
- (BOOL)viewControllerShouldDismiss:(SCViewController *)viewController cancelButtonTapped:(BOOL)cancelTapped doneButtonTapped:(BOOL)doneTapped;
-
Notifies the delegate that the view controller will be dismissed.
- - parameter: viewController The view controller informing the delegate of the event.
- - parameter: cancelTapped TRUE if Cancel button has been tapped to dismiss the view controller.
- - parameter: doneTapped TRUE if Done button has been tapped to dismiss the view controller.
Declaration
Objective-C
- (void)viewControllerWillDismiss:(SCViewController *)viewController cancelButtonTapped:(BOOL)cancelTapped doneButtonTapped:(BOOL)doneTapped;
-
Notifies the delegate that the view controller has been dismissed.
- - parameter: viewController The view controller informing the delegate of the event.
- - parameter: cancelTapped TRUE if Cancel button has been tapped to dismiss the view controller.
- - parameter: doneTapped TRUE if Done button has been tapped to dismiss the view controller.
Declaration
Objective-C
- (void)viewControllerDidDismiss:(SCViewController *)viewController cancelButtonTapped:(BOOL)cancelTapped doneButtonTapped:(BOOL)doneTapped;
-
Notifies the delegate that the view controller will gain focus from master model.
- - parameter: viewController The view controller informing the delegate of the event.
Declaration
Objective-C
- (void)viewControllerWillGainFocus:(SCViewController *)viewController;
-
Notifies the delegate that the view controller did gain focus from master model.
- - parameter: viewController The view controller informing the delegate of the event.
Declaration
Objective-C
- (void)viewControllerDidGainFocus:(SCViewController *)viewController;
-
Notifies the delegate that the view controller will lose focus to its master model.
- - parameter: viewController The view controller informing the delegate of the event.
- - parameter: cancelTapped TRUE if Cancel button has been tapped to dismiss the view controller.
- - parameter: doneTapped TRUE if Done button has been tapped to dismiss the view controller.
Declaration
Objective-C
- (void)viewControllerWillLoseFocus:(SCViewController *)viewController cancelButtonTapped:(BOOL)cancelTapped doneButtonTapped:(BOOL)doneTapped;
-
Notifies the delegate that the view controller did lose focus to its master model.
- - parameter: viewController The view controller informing the delegate of the event.
- - parameter: cancelTapped TRUE if Cancel button has been tapped to dismiss the view controller.
- - parameter: doneTapped TRUE if Done button has been tapped to dismiss the view controller.
Declaration
Objective-C
- (void)viewControllerDidLoseFocus:(SCViewController *)viewController cancelButtonTapped:(BOOL)cancelTapped doneButtonTapped:(BOOL)doneTapped;
-
Notifies the delegate that the view controller did enter editing mode.
Declaration
Objective-C
- (void)viewControllerDidEnterEditingMode:(SCViewController *)viewController;
-
Notifies the delegate that the view controller did exit editing mode.
- - parameter: viewController The view controller informing the delegate of the event.
- - parameter: cancelTapped TRUE if Cancel button has been tapped to exit editing mode.
- - parameter: doneTapped TRUE if Done button has been tapped to exit editing mode.
Declaration
Objective-C
- (void)viewControllerDidExitEditingMode:(SCViewController *)viewController cancelButtonTapped:(BOOL)cancelTapped doneButtonTapped:(BOOL)doneTapped;