Skip to content

conveniently use UIAlertView and UIAlertController by unified block

Notifications You must be signed in to change notification settings

Ericfengshi/CommonUIAlert

Repository files navigation

CommonUIAlert

3rd:
AlertController (Push AlertController to the topmost visible window)
UIAlertView+IABlocks ([Custom UIAlertView with block callback,avoid UIAlertview delegate crash] (http://stackoverflow.com/questions/14063389/custom-uialertview-with-block-callback))
Ref:
实现对UIAlertController和UIAlertView判断系统后的简单封装

What you need

How to use

[[CommonUIAlert alloc] showCommonAlertViewMessage:@"用户名不能为空!"];

[[CommonUIAlert alloc] showCommonAlertViewTitle:@"温馨提示" message:@"有新版本,请更新应用" cancelButtonTitle:@"取消" otherButtonTitle:@"确认" cancle:^(){
} confirm:^(){
}];
    

Only message

- (void)showCommonAlertViewMessage:(NSString *)message;

Message and Block

-(void)showCommonAlertViewTitle:(NSString *)title message:(NSString *)message cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitle:(NSString *)otherButtonTitle 
cancle:(void (^)())cancle confirm:(void (^)())confirm;

About

conveniently use UIAlertView and UIAlertController by unified block

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published