vernonvan / ppstickerkeyboard Goto Github PK
View Code? Open in Web Editor NEWiOS 表情键盘
License: MIT License
iOS 表情键盘
License: MIT License
我也发现了楼主遇到的问题,当输入的只有表情,然后收起键盘之后,会出现点击输入框键盘不弹出的bug,希望大佬能解决一下
Originally posted by @helloMrTom in #3 (comment)
目前的正则是\[.+?\]
,因为.
会匹配任意字符,所以对于字符串xxx[[大笑]xx
,会匹配到最外层的[[大笑]
,而非[大笑]
。另外,这个?
也多余。
正确的应该对于中括号内只匹配字母和汉字,\[[\u4e00-\u9fa5A-Za-z]+\]
输入表情之后,按换行符,输入文字、这时候快速按空格键,光标会一上一下
你好,发现有个交互问题,如题。连续输入表情之后再输入中文,则可以定位光标在表情中间输入文字,请问这个问题能提供一下思路解决吗?我想了很久...谢谢
我觉得完全可以继承富文本的附件NSTextAttachment来做。这样完全省掉很多插入文本的麻烦。
我显示值inputview=emojeKeyboard,然后让textfield becomeFirstResponder,结果弹出来的是系统键盘
请支持下iPhone x
拿到后台的text转换为富文本,计算的富文本高度一直是错的.用的YYKit
NSMutableAttributedString *attributedMessage = [[NSMutableAttributedString alloc] initWithString:resp.songlistContent attributes:@{ NSFontAttributeName: [UIFont systemFontOfSize:16.0f], NSForegroundColorAttributeName: RGB(59, 59, 59, 1.0) }];
[PPStickerDataManager.sharedInstance replaceEmojiForAttributedString:attributedMessage font:[UIFont systemFontOfSize:16.0f]];
commentLabel.attributedText = attributedMessage;//@"\U0000fffc"
显示的是 [鼓掌], 而不是表情
大佬,您这个写得真好,我在用到你写的这个输入框的时候,由于需求的不一样,在输入框外头稍微加了点东西,偶尔会出现输入框与下方键盘之间出现空白区域。尤其是从表情键盘切换回文字键盘时,必现。这是什么原因哦?我之前写的键盘也是出现这种空白区域,后来是搞了个*操作,对于您的这个作品我觉得很完美,不太敢改动您的源码,您知道为什么吗?谢谢!
是在模拟器上运行时,按下表情按钮发现闪退了。具体操作如下:
运行iPhone 6 plus,ios 10.0版本的,点击表情键盘后再点击emoji和键盘切换的那个图标后闪退。
故障代码是:
PPStickerKeyboard[40460:4527147] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIWindow safeAreaInsets]: unrecognized selector sent to instance 0x7fe7a16115e0'
*** First throw call stack:
(
0 CoreFoundation 0x00000001034e134b _exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000102f4221e objc_exception_throw + 48
2 CoreFoundation 0x0000000103550f34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x0000000103466c15 forwarding + 1013
4 CoreFoundation 0x00000001034f4008 forwarding_prep_1 + 120
5 PPStickerKeyboard 0x0000000102946f6d -[PPStickerKeyboard heightThatFits] + 157
6 PPStickerKeyboard 0x0000000102941717 -[PPStickerInputView stickerKeyboard] + 247
7 PPStickerKeyboard 0x0000000102940e7a -[PPStickerInputView changeKeyboardTo:] + 794
8 PPStickerKeyboard 0x000000010294282b -[PPStickerInputView toggleKeyboardDidClick:] + 107
9 UIKit 0x0000000104016b88 -[UIApplication sendAction:to:from:forEvent:] + 83
10 UIKit 0x000000010419c2b2 -[UIControl sendAction:to:forEvent:] + 67
11 UIKit 0x000000010419c5cb -[UIControl _sendActionsForEvents:withEvent:] + 444
12 UIKit 0x000000010419b4c7 -[UIControl touchesEnded:withEvent:] + 668
13 UIKit 0x00000001040840d5 -[UIWindow _sendTouchesForEvent:] + 2747
14 UIKit 0x00000001040857c3 -[UIWindow sendEvent:] + 4011
15 UIKit 0x0000000104032a33 -[UIApplication sendEvent:] + 371
16 UIKit 0x0000000113883959 -[UIApplicationAccessibility sendEvent:] + 93
17 UIKit 0x0000000104824b6d __dispatchPreprocessedEventFromEventQueue + 3248
18 UIKit 0x000000010481d817 __handleEventQueue + 4879
19 CoreFoundation 0x0000000103486311 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
20 CoreFoundation 0x000000010346b59c __CFRunLoopDoSources0 + 556
21 CoreFoundation 0x000000010346aa86 __CFRunLoopRun + 918
22 CoreFoundation 0x000000010346a494 CFRunLoopRunSpecific + 420
23 GraphicsServices 0x0000000108925a6f GSEventRunModal + 161
24 UIKit 0x0000000104014f34 UIApplicationMain + 159
25 PPStickerKeyboard 0x000000010294fc6f main + 111
26 libdyld.dylib 0x00000001069cc68d start + 1
)
你好,请问我工程中导入你的这些类之后,切换到表情键盘,没有表情图片,打印plist文件数据,是空的,怎么回事?是需要改配置吗
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.