Code Monkey home page Code Monkey logo

ppstickerkeyboard's People

Contributors

vernonvan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ppstickerkeyboard's Issues

匹配表情的正则有问题

目前的正则是\[.+?\],因为.会匹配任意字符,所以对于字符串xxx[[大笑]xx,会匹配到最外层的[[大笑],而非[大笑]。另外,这个?也多余。
正确的应该对于中括号内只匹配字母和汉字,\[[\u4e00-\u9fa5A-Za-z]+\]

光标乱窜的bug

输入表情之后,按换行符,输入文字、这时候快速按空格键,光标会一上一下

显示不生效

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文件数据,是空的,怎么回事?是需要改配置吗

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.