Latest 1.0.2
Homepage https://github.com/DickyWoo/DWBasicAlertAction
License MIT
Platforms ios 6.0, requires ARC
Authors

DWBasicAlertAction 系统弹窗,根据版本自动选择调用UIAlertView、UIActionSheet还是UIAlertController

Alert调用示例

[DWBasicAlertAction showAlertWithTitle:@"Alert" message:@"DWBasicAlertAction" cancelButtonTitle:@"cancel" otherButtonTitles:@[@"item1",@"item2",@"item3",@"item4",@"item5",@"item6"]  chooseBlock:^(NSInteger buttonIdx) {
    NSLog(@"click buttonIdx:%ld",buttonIdx);
}];

UIActionSheet调用示例

[DWBasicAlertAction showActionSheetWithTitle:@"ActionSheet" message:@"DWBasicAlertAction" cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Destrutive" otherButtonTitles:@[@"item1",@"item2",@"item3",@"item4",@"item5",@"item6"] chooseBlock:^(NSInteger buttonIdx) {
    NSLog(@"click buttonIdx:%ld",buttonIdx);
}];

Installation

Latest version: 1.0.2

pod search DWBasicAlertAction

If you cannot search out the latest version, try:

pod setup

Release Notes

We recommend to use the latest release in cocoapods.

  • 1.0.2
    修复在弹窗代理中调用无法生效的BUG

  • 1.0.1
    support for cocoapods

Latest podspec

{
    "name": "DWBasicAlertAction",
    "version": "1.0.2",
    "summary": "A Library for iOS to use for show alert, automatic choose UIAlert And UIActionSheet below iOS8.0, otheriwse choose UIAlertViewController.",
    "description": "A Library for iOS to use for show alert, automatic choose UIAlert And UIActionSheet below iOS8.0, otheriwse choose UIAlertViewController.u7cfbu7edfu5f39u7a97uff0cu6839u636eu7248u672cu81eau52a8u9009u62e9u8c03u7528UIAlertViewu3001UIActionSheetu8fd8u662fUIAlertController.",
    "homepage": "https://github.com/DickyWoo/DWBasicAlertAction",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "DickyWoo": "https://github.com/DickyWoo"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/wujiandongxq/DWBasicAlertAction.git",
        "tag": "1.0.2"
    },
    "source_files": "DWBasicAlertAction/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This