mod

MODropAlert

Dropping Animation PopupView

Showing:

Popularity

Downloads/wk

0

GitHub Stars

150

Maintenance

Last Commit

7yrs ago

Contributors

2

Package

Dependencies

0

License

MIT

Categories

Readme

MODropAlert

I want to make dropping alert view, so I make this custom alert view library.

DropAlert

(the above gif is iphone simulator animation.)

Installation Cocoapods

as soon as..(maybe?)

How to use it

This dropAlert view is two ways(delegate or block).

  • Delegate
MODropAlertView *alertView = [[MODropAlertView alloc]initDropAlertWithTitle:@"Alert"
                                                                    description:@"Lorem ipsum dolor sit amet"
                                                                  okButtonTitle:@"OK"
                                                              cancelButtonTitle:@"Cancel"];
alertView.delegate = self;
[alertView show];                                                              
  • Delegate Main methods :
// default alert view
- (instancetype)initDropAlertWithTitle:(NSString *)title description:(NSString *)description okButtonTitle:(NSString *)okButtonTitle;
- (instancetype)initDropAlertWithTitle:(NSString *)title description:(NSString *)description okButtonTitle:(NSString *)okButtonTitle cancelButtonTitle:(NSString *)cancelButtonTitle;

// custom color alert view
- (instancetype)initDropAlertWithTitle:(NSString *)title description:(NSString *)description okButtonTitle:(NSString *)okButtonTitle okButtonColor:(UIColor *)okBtnColor;
- (instancetype)initDropAlertWithTitle:(NSString *)title description:(NSString *)description okButtonTitle:(NSString *)okButtonTitle cancelButtonTitle:(NSString *)cancelButtonTitle okButtonColor:(UIColor *)okBtnColor cancelButtonColor:(UIColor *)cancelBtnColor;
  • Block
MODropAlertView *alert = [[MODropAlertView alloc]initDropAlertWithTitle:@"Block AlertView" 
                                                            description:@"Lorem ipsum dolor sit amet."
                                                          okButtonTitle:@"OK"
                                                           successBlock:^{
                                                               NSLog(@"Success Log");
                                                           }];
[alert show];
  • Block Main methods :
// default alert view
- (instancetype)initDropAlertWithTitle:(NSString *)title description:(NSString *)description okButtonTitle:(NSString *)okButtonTitle successBlock:(blk)successBlock;
- (instancetype)initDropAlertWithTitle:(NSString *)title description:(NSString *)description okButtonTitle:(NSString *)okButtonTitle cancelButtonTitle:(NSString *)cancelButtonTitle successBlock:(blk)successBlock failureBlock:(blk)failureBlock;

// custom color alert view
- (instancetype)initDropAlertWithTitle:(NSString *)title description:(NSString *)description okButtonTitle:(NSString *)okButtonTitle okButtonColor:(UIColor *)okBtnColor successBlock:(blk)successBlock;
- (instancetype)initDropAlertWithTitle:(NSString *)title description:(NSString *)description okButtonTitle:(NSString *)okButtonTitle cancelButtonTitle:(NSString *)cancelButtonTitle okButtonColor:(UIColor *)okBtnColor cancelButtonColor:(UIColor *)cancelBtnColor successBlock:(blk)successBlock failureBlock:(blk)failureBlock;

If you use delegate pattern, you notice action of view.

- (void)alertViewWillAppear:(MODropAlertView *)alertView;
- (void)alertViewDidAppear:(MODropAlertView *)alertView;
- (void)alertViewWilldisappear:(MODropAlertView *)alertView buttonType:(DropAlertButtonType)buttonType;
- (void)alertViewDidDisappear:(MODropAlertView *)alertView buttonType:(DropAlertButtonType)buttonType;
- (void)alertViewPressButton:(MODropAlertView *)alertView buttonType:(DropAlertButtonType)buttonType;

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100