https://github.com/aidevjoe/qcalertview
Alert View for iOS
https://github.com/aidevjoe/qcalertview
Last synced: 4 months ago
JSON representation
Alert View for iOS
- Host: GitHub
- URL: https://github.com/aidevjoe/qcalertview
- Owner: aidevjoe
- License: other
- Created: 2016-08-17T06:00:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-22T10:23:21.000Z (almost 9 years ago)
- Last Synced: 2025-03-01T07:23:23.338Z (4 months ago)
- Language: Objective-C
- Size: 594 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QCAlertView
---### QCAlertView 是一个提示框组件,类似系统的 AlertView、SheetView
---
Gif 演示
## 安装
---
推荐您使用[CocoaPods](http://cocoapods.org/)进行安装, 只需添加
>pod 'QCAlertView'并运行 pod install 即可安装最新版
或者下载项目, 将项目中的 QCAlertView 目录, 拖入到您的项目中即可
## 使用
---
//QCMessageAlertView
[QCMessageAlertView showAlertWithMessage:@"Hello world !"];
//QCButtonsAlertView
[QCButtonsAlertView showAlertWithContentView:self.view andMessage:@"Sure to exit?" andButtonsTitle:@[@"Yes", @"No"] alertViewblock:^(QCAlertView *view, NSInteger tag) {
NSLog(@"%li", tag);
}];
//QCButtonsAlertView
[QCLoadingView showLoadingView];
//QCSheetView
[QCSheetView showSheetViewWithMessage:@"确定退出登录吗?." andButtonsTitle:@[@"换个账号", @"退出"] alertViewblock:^(NSInteger tag) {
NSLog(@"%li", tag);
}];