Last active
December 12, 2015 08:38
-
-
Save simonwhitaker/4745057 to your computer and use it in GitHub Desktop.
A simple protocol for view controllers that want to communicate that they should be dismissed without knowing about how they were presented.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GSDismissableViewControllerDelegate.h | |
// | |
// Created by Simon Whitaker at Goo Software Ltd. | |
// https://gist.github.com/simonwhitaker/4745057 | |
#import <Foundation/Foundation.h> | |
#import <UIKit/UIKit.h> | |
@protocol GSDismissableViewControllerDelegate <NSObject> | |
- (void)dismissViewController:(UIViewController*)viewController wasCancelled:(BOOL)wasCancelled; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment