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