1234567891011121314151617181920212223242526272829303132 |
- #import <UIKit/UIKit.h>
- #define ALERT(x) [JSAlertView alert:x]
- #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0
- @interface JSAlertView : UIAlertController
- #else
- @interface JSAlertView : UIAlertView
- #endif
- + (instancetype)alert:(NSString*)message;
- + (instancetype)confirm:(NSString*)message withCompletionHandler:(void(^)(BOOL accepted))completionHandler;
- + (instancetype)confirm:(NSString*)message withTitle:(NSString*)title withCompletionHandler:(void(^)(BOOL accepted))completionHandler;
- + (instancetype)alert:(NSString*)message withTitle:(NSString*)title buttons:(NSArray*)buttonTitles withCompletionHandler:(void(^)(NSInteger buttonIndex, NSString *buttonTitle))completionHandler;
- + (BOOL)isOpenAlertWindows;
- @end
|