AlertPro 1.3

AlertPro 1.3

测试已测试
语言语言 Obj-CObjective C
许可 MIT
发布最后发布2016年7月

Ivan Shevelev维护。



为handleSubmitController类提供简单创建和显示UIAlertController的类别。

用法

非常简单,哈哈哈。

[self hrShowActionSheetWithTitle:@"Title" message:@"Message" buttonTitles:@[@"First", @"Second"] actionHandler:^(NSInteger indexOfAction, NSString * _Nonnull title) {
    [self showHandleAlertWithMessage:[NSString stringWithFormat:@"Tapped button with name: '%@'", title]];
} andCancelActionHandler:^{
    [self showHandleAlertWithMessage:@"Cancel button is tapped"];
}];

-(void)showHandleAlertWithMessage:(NSString *)message {
    [self hrShowAlertWithTitle:@"Handle!" message:message];
}

有关其他方法的用法,请参阅文档

需求

Objective-C和iOS 8.0或更高版本。

安装

AlertPro通过CocoaPods提供。要安装它,只需将以下行添加到您的Podfile中

pod 'AlertPro'

作者

Ivan Shevelev, [email protected]

许可

AlertPro可在MIT许可下使用。有关更多信息,请参阅LICENSE文件。