Skip to content

Adailly/LYAlertView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LYAlertView

快速实现自定义alertView

使用方法

LYAlertView *alertView = [[LYAlertView alloc] initWithTitle:@"提示" Message:@"是否确认删除" cancelButton:@"取消" confirmButton:@"确认"];
[alertView show];

// 只有一个button时的操作
[alertView setCancelBlock:^{
    NSLog(@"取消操作");
}];

[alertView setConfirmBlock:^{
    NSLog(@"确认操作");
}];

效果1
效果1

// 无信息时置为nil
LYAlertView *alertView = [[LYAlertView alloc] initWithTitle:@"最多添加9张照片" Message:nil cancelButton:nil confirmButton:@"确认"];
[alertView show];
// 只有一个button时的操作
[alertView setCancelBlock:^{
    NSLog(@"取消操作");
}];

效果2
效果2

About

快速实现自定义alertView

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published