Latest 1.0.0
Homepage https://github.com/honeycao/ACAlertController
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit
Authors

At iOS 8.0 later, we use UIAlertController, it’s not friendly, so we replace it with ACAlertController.


ACAlertControllerExampleGif

Requirements

  • iOS 7.0 or later
  • Xcode 7.0 or later

Architecture

How to use

  • Use CocoaPods:
    • pod 'ACAlertController'
  • Manual import:
    • Drag All files in the ACAlertController folder to project
    • Import the main file:#import "ACAlertController.h"

Details (See the example program ACAlertControllerExample for details)

//1、初始化
ACAlertController *action2 = [[ACAlertController alloc] initWithActionSheetTitles:self.titles cancelTitle:self.cancelTitle];

//2、获取点击事件
[action2 clickActionButton:^(NSInteger index) {
    NSLog(@"selected item = %ld", (long)index);
}];

//3、显示
[action2 show];

Custom

  • cancelButtonTextColor

  • cancelButtonTextFont

  • actionButtonsTextColor

  • actionButtonsTextFont

  • set action button text color with index

    - (void)configureActionButtonTextColor: (UIColor *)color index: (NSInteger)index;

  • set action button text font with index.

    - (void)configureActionButtonTextFont:(UIFont *)font index:(NSInteger)index;

Hope

  • If you have any questions during the process or want more interfaces to customize,you can issues me
  • If you feel slightly discomfort in use, please contact me QQ:331864805
  • If you support me, please giving me star

Licenses

All source code is licensed under the MIT License.

Latest podspec

{
    "name": "ACAlertController",
    "version": "1.0.0",
    "summary": "At iOS 8.0 later, we use UIAlertController, it's not friendly, so we  replace it with ACAlertController.",
    "homepage": "https://github.com/honeycao/ACAlertController",
    "license": "MIT",
    "authors": {
        "ArthurCao": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/honeycao/ACAlertController.git",
        "tag": "1.0.0"
    },
    "source_files": "ACAlertController/**/*.{h,m}",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This