From 7b02207537d35bfa1714bf8beafc921f717d100a Mon Sep 17 00:00:00 2001 From: 单军华 Date: Wed, 11 Jul 2018 10:47:42 +0800 Subject: [PATCH] 首次上传 --- screendisplay/Pods/RAlertView/README-CN.md | 94 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 94 insertions(+), 0 deletions(-) diff --git a/screendisplay/Pods/RAlertView/README-CN.md b/screendisplay/Pods/RAlertView/README-CN.md new file mode 100755 index 0000000..ab1b60d --- /dev/null +++ b/screendisplay/Pods/RAlertView/README-CN.md @@ -0,0 +1,94 @@ +  + RAlertView ios������ +=== +AlertView ���������ios���������������������������������������������������������������������pod. + +[](https://github.com/roycms/RAlertView) +[](http://cocoapods.org/?q=RAlertView) +[](https://github.com/roycms/RAlertView/blob/master/LICENSE) +[](mailto:roycms@qq.com) + +## ������������ +  + +## ������ +- ������������������ ` Masonry ` ��� ` HexColors ` ��������������������������������������������������������� +- ���������������������������`#import "RAlertView.h"` ��������� + +## cocoapods ������ +` pod 'AlertView' ` + +## ������������ AlertStyle +```objective-c +typedef NS_ENUM(NSInteger,AlertStyle) { + SimpleAlert = 0, + ConfirmAlert, + CancelAndConfirmAlert, +}; +``` + +## ������������������ AlertTheme +```objective-c + RAlertView *alert = [[RAlertView alloc] initWithStyle:CancelAndConfirmAlert]; + alert.theme =[UIColor redColor]; +``` + + +## ������������������ +* ��������������������������������������������������������� +```objective-c +alert.isClickBackgroundCloseWindow = YES; +``` +* ������������������������������������������������ +```objective-c +alert.contentTextLabel.text =@"SimpleAlert \nAlertView A pop-up framework, Can be simple and convenient to join your project"; + +alert.contentTextLabel.attributedText = [TextHelper attributedStringForString:@"AlertView A pop-up framework, Can be simple and convenient to join your project" lineSpacing:5]; +``` + +## ��������������� RAlertView +* ��������������������� initWithStyle AlertStyle +```objective-c +RAlertView *alert = [[RAlertView alloc] initWithStyle:SimpleAlert]; +``` +* ������������������������������ width������������������0-1������������������������������������������������������1���������������px������������ initWithStyle AlertStyle and width +```objective-c +RAlertView *alert = [[RAlertView alloc] initWithStyle:SimpleAlert width:0.8]; +``` +## SimpleAlert +```objective-c +RAlertView *alert = [[RAlertView alloc] initWithStyle:SimpleAlert width:0.8]; +alert.isClickBackgroundCloseWindow = YES; +alert.contentTextLabel.text =@"SimpleAlert \nAlertView A pop-up framework, Can be simple and convenient to join your project"; +``` +## ConfirmAlert +```objective-c +RAlertView *alert = [[RAlertView alloc] initWithStyle:ConfirmAlert]; +alert.headerTitleLabel.text = @"ConfirmAlert"; +alert.contentTextLabel.attributedText = [TextHelper attributedStringForString:@"AlertView A pop-up framework, Can be simple and convenient to join your project" lineSpacing:5]; +[alert.confirmButton setTitle:@"Ok" forState:UIControlStateNormal]; +alert.confirm = ^(){ + NSLog(@"Click on the Ok"); + }; + +``` +## CancelAndConfirmAlert +```objective-c +RAlertView *alert = [[RAlertView alloc] initWithStyle:CancelAndConfirmAlert]; +alert.headerTitleLabel.text = @"CancelAndConfirmAlert"; +alert.contentTextLabel.attributedText = [TextHelper attributedStringForString:@"AlertView A pop-up framework, Can be simple and convenient to join your project" lineSpacing:5];; +[alert.confirmButton setTitle:@"Ok" forState:UIControlStateNormal]; +[alert.cancelButton setTitle:@"Cancel" forState:UIControlStateNormal]; +alert.confirm = ^(){ + NSLog(@"Click on the Ok"); + }; +alert.cancel = ^(){ + NSLog(@"Click on the Cancel"); + }; +``` +## ������ +* ������������������������������BUG���������������Issues������������������������������������������������������������BUG��������������� +* ������������������������������������������������������������Issues��������������������������������������������������������������������� +* ���������������RAlertView������������������������Pull Requests��� + +������������������ https://github.com/sparanoid/chinese-copywriting-guidelines -- Gitblit v1.8.0