Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aidevjoe/qcalertview
Alert View for iOS
https://github.com/aidevjoe/qcalertview
Last synced: about 23 hours 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-22T10:23:21.000Z (about 8 years ago)
- Last Synced: 2024-10-30T08:53:12.059Z (18 days 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 演示![image](https://github.com/Joe0708/QCAlertView/raw/master/Demo.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);
}];