# ACAlertController
**Repository Path**: cnbobolee/ACAlertController
## Basic Information
- **Project Name**: ACAlertController
- **Description**: At iOS 8.0 later, we use UIAlertController, it's not friendly, so we replace it with ACAlertController.
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-03-14
- **Last Updated**: 2021-03-14
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# ACAlertController
At iOS 8.0 later, we use UIAlertController, it's not friendly, so we replace it with ACAlertController.
------

## Requirements
* iOS 7.0 or later
* Xcode 7.0 or later
## Architecture
* [How to use](#use)
* [Details (See the example program ACAlertControllerExample for details)](#Details)
* [Custom](#Custom)
* [Hope](#hope)
## 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)
```objective-c
//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](https://github.com/honeycao/ACAlertController/issues/new)
- 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.