CocoaPods trunk is moving to be read-only. Read more on the blog, there are 9 months to go.

LBAlertView 0.0.1

LBAlertView 0.0.1

Maintained by lib.



  • By
  • Lib

警告提示框

集成

pod 'LBAlertView'

使用

1.自动隐藏

[[LBAlertView alertViewWithMessage:@"哈哈哈哈哈哈哈哈" afterDelay:3] show];

2.一个按钮

[[LBAlertView alertViewWithMessage:@"哈哈哈哈哈哈哈哈" cancelTitle:@"取消" cancelAction:^(LBAlertView *alertView) {
   NSLog(@"点击取消");
}] show];	

3.两个按钮

[[LBAlertView alertViewWithMessage:@"哈哈哈哈哈哈哈哈" cancelTitle:@"取消" cancelAction:^(LBAlertView *alertView) {
   NSLog(@"点击取消");
} otherTitle:@"确定" otherAction:^(LBAlertView *alertView) {
   NSLog(@"点击确定");
}] show];