Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 1.62 KB

README.md

File metadata and controls

71 lines (48 loc) · 1.62 KB

FEAlertController

build a wheel for FeelingV2

screenshot

Features

  • Easy to use
  • Full customization

Useage

import
#import "FEAlertController.h"
init
  • 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));
}];
show
[alertController showInViewController:self];
dismiss
[alertController dismiss];
About these properties

screenshot

Customiz

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];

CocoaPods

pod 'FEAlertController'

Licence

MIT