An iOS AlertView Library ,with Error,Success,Warning
It's very esay to use HHAlertView
##setup
pod 'HHAlertView', '~> 0.1.0'
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!
- custom the way to come
Email:[email protected]