-
Notifications
You must be signed in to change notification settings - Fork 9
/
params.json
6 lines (6 loc) · 3.97 KB
/
params.json
1
2
3
4
5
6
{
"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:[email protected])\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."
}