1 Star 0 Fork 9

徐胖胖/AlertView

forked from 杜耀辉/AlertView 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
params.json 3.97 KB
一键复制 编辑 原始数据 按行查看 历史
杜耀辉 提交于 2016-10-16 20:26 . Create master branch via GitHub
{
"name": "Ralertview",
"tagline": "AlertView, Ios popup window, A pop-up framework, Can be simple and convenient to join your project.",
"body": " ![Logo](https://github.com/roycms/RAlertView/blob/master/RAlert/logo.png)\r\n RAlertView\r\n===\r\nAlertView A pop-up framework, Can be simple and convenient to join your project.\r\n\r\n[![Shippable](https://img.shields.io/shippable/5444c5ecb904a4b21567b0ff.svg?maxAge=2592000?style=flat-square)](https://github.com/roycms/RAlertView)\r\n[![CocoaPods](https://img.shields.io/badge/pod-0.0.1-red.svg)](http://cocoapods.org/?q=RAlertView)\r\n[![Packagist](https://img.shields.io/packagist/l/doctrine/orm.svg?maxAge=2592000?style=flat-square)](https://github.com/roycms/RAlertView/blob/master/LICENSE)\r\n[![email](https://img.shields.io/badge/%20email%20-%20roycms%40qq.com%20-yellowgreen.svg)](mailto:roycms@qq.com)\r\n[![doc](https://img.shields.io/badge/%E4%B8%AD%E6%96%87-DOC-orange.svg)](https://github.com/roycms/RAlertView/blob/master/README-CN.md)\r\n\r\n\r\n\r\n\r\n## Installation\r\n- Depend on the project ` Masonry `and ` HexColors ` Import `#import \"Masonry.h\"` `#import \"HexColors.h\"`\r\n- Import the main header file:`#import \"RAlertView.h\"`\r\n\r\n## cocoapods \r\n` pod 'AlertView' `\r\n\r\n## Preview AlertStyle\r\n```objective-c\r\ntypedef NS_ENUM(NSInteger,AlertStyle) {\r\n SimpleAlert = 0,\r\n ConfirmAlert,\r\n CancelAndConfirmAlert,\r\n};\r\n```\r\n![RAlertView Preview](https://github.com/roycms/RAlertView/blob/master/RAlert/AlertStyle.jpg)\r\n## Preview AlertTheme\r\n```objective-c\r\ntypedef NS_ENUM(NSInteger,AlertTheme) {\r\n YellowAlert = 0,\r\n GreenAlert,\r\n BlueAlert,\r\n Purple1Alert,\r\n Purple2Alert,\r\n};\r\n```\r\n![RAlertView Preview](https://github.com/roycms/RAlertView/blob/master/RAlert/Theme.jpg)\r\n\r\n## Some feature set\r\n* Click on the background and any position hidden pop-up window\r\n```objective-c\r\nalert.isClickBackgroundCloseWindow = YES;\r\n```\r\n* Set bounced content text center\r\n```objective-c\r\n[alert setContentText:@\"is ContentText\" isAlignmentCenter:YES];\r\n```\r\n\r\n## init RAlertView\r\n* initWithStyle AlertStyle\r\n```objective-c\r\nRAlertView *alert = [[RAlertView alloc] initWithStyle:SimpleAlert];\r\n```\r\n* initWithStyle AlertStyle and width\r\n```objective-c\r\nRAlertView *alert = [[RAlertView alloc] initWithStyle:SimpleAlert width:0.8];\r\n```\r\n## SimpleAlert\r\n```objective-c\r\nRAlertView *alert = [[RAlertView alloc] initWithStyle:SimpleAlert];\r\nalert.contentText = @\"SimpleAlert \\nAlertView A pop-up framework, Can be simple and convenient to join your project\";\r\n```\r\n## ConfirmAlert\r\n```objective-c\r\nRAlertView *alert = [[RAlertView alloc] initWithStyle:ConfirmAlert];\r\nalert.theme = Purple1Alert;\r\nalert.headerTitle = @\"ConfirmAlert\";\r\nalert.contentText = @\"AlertView A pop-up framework, Can be simple and convenient to join your project\";\r\nalert.confirmButtonText = @\"Ok\";\r\nalert.confirmButtonBlock = ^(){\r\n NSLog(@\"Click on the Ok\");\r\n};\r\n```\r\n## CancelAndConfirmAlert\r\n```objective-c\r\nRAlertView *alert = [[RAlertView alloc] initWithStyle:CancelAndConfirmAlert];\r\nalert.headerTitle = @\"CancelAndConfirmAlert\";\r\nalert.contentText = @\"AlertView A pop-up framework, Can be simple and convenient to join your project\";\r\nalert.confirmButtonText = @\"Ok\";\r\nalert.cancelButtonText = @\"Cancel\";\r\nalert.confirmButtonBlock = ^(){\r\n NSLog(@\"Click on the Ok\");\r\n};\r\nalert.cancelWindowBlock = ^(){\r\n NSLog(@\"Click on the Cancel\");\r\n};\r\n```\r\n## 期待\r\n* 如果在使用过程中遇到BUG,希望你能Issues我,谢谢(或者尝试下载最新的框架代码看看BUG修复没有)\r\n* 如果在使用过程中发现功能不够用,希望你能Issues我,我非常想为这个框架增加更多好用的功能,谢谢\r\n* 如果你想为RAlertView输出代码,请拼命Pull Requests我\r\n",
"note": "Don't delete this file! It's used internally to help with page regeneration."
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Objective-C
1
https://gitee.com/xu_pangpangpang/AlertView.git
git@gitee.com:xu_pangpangpang/AlertView.git
xu_pangpangpang
AlertView
AlertView
master

搜索帮助