From 7b02207537d35bfa1714bf8beafc921f717d100a Mon Sep 17 00:00:00 2001 From: 单军华 Date: Wed, 11 Jul 2018 10:47:42 +0800 Subject: [PATCH] 首次上传 --- screendisplay/Pods/HMEmoticon/README.md | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 113 insertions(+), 0 deletions(-) diff --git a/screendisplay/Pods/HMEmoticon/README.md b/screendisplay/Pods/HMEmoticon/README.md new file mode 100755 index 0000000..3414637 --- /dev/null +++ b/screendisplay/Pods/HMEmoticon/README.md @@ -0,0 +1,113 @@ + + +# HMEmoticon +[](https://travis-ci.org/itheima-developer/HMEmoticon) +[](https://img.shields.io/cocoapods/v/HMEmoticon.svg) +[](http://cocoadocs.org/docsets/HMEmoticon) + +��������������������������� + +## ������������ + + + +## ������ + +* ��������������������������� +* ��������������������������������� + +## ������������ + +* iOS 8.0+ +* Xcode 7.0 + +## ������ + +### CocoaPods + +* ���������������`cd` ��������������������������������������������� `Podfile` + +```bash +$ pod init +``` + +* ��� Podfile ������������������������ + +``` +platform :ios, '8.0' +use_frameworks! + +target 'ProjectName' do +pod 'HMEmoticon' +end +``` + +* ������������������������������������������������ Pod + +```bash +# ������ Pod������������������ +$ pod install + +# ������ Pod��������������� +$ pod update +``` + +## ������ + +### Objective-C + +* ������������ + +```objc +@import HMEmoticon; +``` + +* ��� Storyboard ������ `UITextView` ��� `Class` ��������� `HMEmoticonTextView` + +```objc +@property (weak, nonatomic) IBOutlet HMEmoticonTextView *textView; +``` + +#### ������������ + +* ������������������������������ `Default` + +```objc +// 1. ������������������ - ������������������������������ +[HMEmoticonManager sharedManager].userIdentifier = @"������"; +``` + +* ������������������������ + +```objc +// 1> ������������������ +_textView.useEmoticonInputView = YES; +// 2> ������������������ +_textView.placeholder = @"���������������..."; +// 3> ������������������������ +_textView.maxInputLength = 140; +``` + +* ������������������������������ + +```objc +_textView.useEmoticonInputView = !_textView.isUseEmoticonInputView; +``` + +#### ������������ + +* ��� `���������������` ��������� `���������������������������������` + +```objc +NSString *text = @"[������]���[���������]"; +NSAttributedString *attributeText = [[HMEmoticonManager sharedManager] + emoticonStringWithString:text + font:_textView.font + textColor:_textView.textColor]; +``` + +* ������ `���������������` + +```objc +_textView.emoticonText +``` -- Gitblit v1.8.0