Created
May 9, 2015 14:07
-
-
Save Koze/4f01a29e21e10fed2483 to your computer and use it in GitHub Desktop.
UIViewController's dismiss method with IBAction
This file contains 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
#import <UIKit/UIKit.h> | |
@interface UIViewController (UIViewControllerPresentation) | |
- (IBAction)dismiss:(id)sender; | |
@end |
This file contains 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
#import "UIViewController+UIViewControllerPresentation.h" | |
@implementation UIViewController (UIViewControllerPresentation) | |
- (IBAction)dismiss:(id)sender | |
{ | |
[self dismissViewControllerAnimated:YES completion:nil]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment