pangyang de2577fe4b first commit | 5 years ago | |
---|---|---|
.. | ||
ACAlertController | 5 years ago | |
LICENSE | 5 years ago | |
README.md | 5 years ago |
At iOS 8.0 later, we use UIAlertController, it's not friendly, so we replace it with ACAlertController.
ACAlertController
folder to project#import "ACAlertController.h"
//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];
cancelButtonTextColor
cancelButtonTextFont
actionButtonsTextColor
actionButtonsTextFont
set action button text color with index
- (void)configureActionButtonTextColor: (UIColor *)color index: (NSInteger)index;
- (void)configureActionButtonTextFont:(UIFont *)font index:(NSInteger)index;
All source code is licensed under the MIT License.