build a wheel for FeelingV2
- Easy to use
- Full customization
#import "FEAlertController.h"
- title can be nil
- image can be nil
- description can be nil
- buttons maximum of 2
FEAlertController *alertController = [FEAlertController alertWithTitle:@"What are you doing?"
image:[UIImage imageNamed:@"ahopps"]
description:@"Can you guess what I\'m going to do?"
buttons:@[@"Read book",@"Coding"]
highlightButtonIndex:1
callback:^(FEAlertController *alertController, NSInteger buttonIndex) {
NSLog(@"click button index : %@", @(buttonIndex));
}];
[alertController showInViewController:self];
[alertController dismiss];
you can use alertController.contentView.
control all of ui elements. eg.
alertController.contentView.titleLabel.font = [UIFont boldSystemFontOfSize:18.0];
alertController.contentView.descriptionLabel.textColor = [UIColor redColor];
pod 'FEAlertController'
MIT