This repository has been archived on 2025-03-19. You can view files and clone it, but cannot push or open issues or pull requests.
FlashBack/FlashBack/UIAlertAction+Common.m
2020-02-02 15:21:58 -05:00

25 lines
614 B
Objective-C

//
// UIAlertAction+Common.m
// FlashBack
//
// Created by Aaron KJ on 2/2/20.
// Copyright © 2020 Micah Gomez. All rights reserved.
//
#import "UIAlertAction+Common.h"
@implementation UIAlertAction (Common)
+ (UIAlertAction *)okAction {
return [self okActionWithHandler:nil];
}
+ (UIAlertAction *)okActionWithHandler:(void (^)(UIAlertAction *action))handler {
return [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:handler];
}
+ (UIAlertAction *)cancelAction {
return [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil];
}
@end