mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
33 lines
830 B
Objective-C
33 lines
830 B
Objective-C
//
|
|
// OSKAlertView.h
|
|
// Overshare Kit
|
|
//
|
|
// Created by Jared Sinclair October 18, 2013.
|
|
// Copyright (c) 2013 Jared Sinclair & Justin Williams LLC. All rights reserved.
|
|
//
|
|
|
|
@import UIKit;
|
|
|
|
typedef void (^OSKAlertViewActionBlock)(void);
|
|
|
|
@interface OSKAlertViewButtonItem : NSObject
|
|
|
|
@property (copy, nonatomic) OSKAlertViewActionBlock actionBlock;
|
|
@property (copy, nonatomic) NSString *title;
|
|
|
|
- (id)initWithTitle:(NSString *)title actionBlock:(OSKAlertViewActionBlock)actionBlock;
|
|
|
|
@end
|
|
|
|
@interface OSKAlertView : UIAlertView <UIAlertViewDelegate>
|
|
|
|
+ (OSKAlertViewButtonItem *)cancelItem;
|
|
|
|
+ (OSKAlertViewButtonItem *)okayItem;
|
|
|
|
- (id)initWithTitle:(NSString *)title
|
|
message:(NSString *)message
|
|
cancelButtonItem:(OSKAlertViewButtonItem *)cancelButtonItem
|
|
otherButtonItems:(NSArray *)otherButtonItems;
|
|
|
|
@end
|