mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-03-25 09:25:47 +00:00
28 lines
545 B
Objective-C
28 lines
545 B
Objective-C
#import <PromiseKit/fwd.h>
|
|
#import <UIKit/UIAlertView.h>
|
|
|
|
/**
|
|
To import the `UIAlertView` category:
|
|
|
|
pod "PromiseKit/UIAlertView"
|
|
|
|
Or you can import all categories on `UIKit`:
|
|
|
|
pod "PromiseKit/UIKit"
|
|
|
|
Or `UIKit` is one of the categories imported by the umbrella pod:
|
|
|
|
pod "PromiseKit"
|
|
*/
|
|
@interface UIAlertView (PromiseKit)
|
|
|
|
/**
|
|
Displays the alert view.
|
|
|
|
@return A promise the fulfills with two parameters:
|
|
1) The index of the button that was tapped to dismiss the alert.
|
|
2) This alert view.
|
|
*/
|
|
- (PMKPromise *)promise;
|
|
|
|
@end
|