Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.13 KB

README.md

File metadata and controls

53 lines (34 loc) · 1.13 KB

HHAlertView

An iOS AlertView Library ,with Error,Success,Warning

image

It's very esay to use HHAlertView

##setup

use pod

pod 'HHAlertView', '~> 0.1.0'

How to use

HHAlertView *alertview = [[HHAlertView alloc] initWithTitle:@"成功" detailText:@"恭喜你,操作顺利的实行了!\n换个行试试看效果" cancelButtonTitle:nil otherButtonTitles:@[@"确定"]];
[alertview setEnterMode:HHAlertEnterModeTop];
[alertview setLeaveMode:HHAlertLeaveModeBottom];
[alertview showWithBlock:^(NSInteger index) {
   NSLog(@"%ld",index);
}];

there are three styles

HHAlertViewModeSuccess,
HHAlertViewModeError,
HHAlertViewModeWarning,
HHAlertViewModeInfo,
HHAlertViewModeDefault,
HHAlertViewModeCustom

It's easy to use,enjoy it!

demo

image

image

Todo

  • custom the way to come

Email:[email protected]