Skip to content

Instantly share code, notes, and snippets.

@gklka
Created September 17, 2015 11:31
Show Gist options
  • Save gklka/ac51070daf28a540e9fb to your computer and use it in GitHub Desktop.
Save gklka/ac51070daf28a540e9fb to your computer and use it in GitHub Desktop.
//
// UIAlertAction+Extensions.m
//
// Created by GK on 15.09.17..
//
//
#import "UIAlertAction+Extensions.h"
@implementation UIAlertAction (Extensions)
+ (instancetype)actionWithCancel
{
return [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
// Nothing
}];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment