YYText
YYText copied to clipboard
Fix issue 89 and issue 374
相关讨论见 https://github.com/ibireme/YYText/issues/89
移除了一些对 textWillChange, textDidChange, selectionWillChange, selectionDidChange
的调用
见这里 https://github.com/ibireme/YYText/issues/89#issuecomment-288239907
主要是 deleteBackward, insertText:, setSelectedTextRange:
三个方法里面的调用。
添加了一个 commit,修复了系统输入法输入英文联想时的问题。 https://github.com/ibireme/YYKit/issues/175 https://github.com/ibireme/YYText/issues/374
@ibireme 这个PR什么时候采纳呢?
这个PR什么时候合并? @iTofu @sablib 2017年的老问题了,2019年还在,说实在的英文联想输入对于英文用户非常普遍,完全不关心了么
@jayasme 这不是我的库……
@jayasme 作者好像是因为身体原因,最近一年多都没有在 github 上出现过了 你可以自己 fork 出去一份维护
使用此方式,发现线上有一些崩溃,但是项目中还无法复现。下面是报错的日志信息。
0 YYText
-[YYTextView replaceRange:withText:notifyInputDelegate:] + 828
1
UIKitCore
-[UIKeyboardImpl applyAutocorrection:] + 652
13
UIKitCore
-[UIKeyboardImpl selectionDidChange:] + 364
14
YYText
-[YYTextView _replaceRange:withText:notifyToInputDelegate:] + 280
15
YYText
-[YYTextView replaceRange:withText:notifyInputDelegate:] + 828
16
UIKitCore
-[UIKeyboardImpl applyAutocorrection:] + 652
28
UIKitCore
-[UIKeyboardImpl selectionDidChange:] + 364
29
YYText
-[YYTextView _replaceRange:withText:notifyToInputDelegate:] + 280
30
YYText
-[YYTextView replaceRange:withText:notifyInputDelegate:] + 828
31
UIKitCore
-[UIKeyboardImpl applyAutocorrection:] + 652
43
UIKitCore
-[UIKeyboardImpl selectionDidChange:] + 364
44
YYText
-[YYTextView _replaceRange:withText:notifyToInputDelegate:] + 280
45
YYText
-[YYTextView replaceRange:withText:notifyInputDelegate:] + 828
46
UIKitCore
-[UIKeyboardImpl applyAutocorrection:] + 652
58
UIKitCore
-[UIKeyboardImpl selectionDidChange:] + 364
59
YYText
-[YYTextView _replaceRange:withText:notifyToInputDelegate:] + 280
60
YYText
-[YYTextView replaceRange:withText:notifyInputDelegate:] + 828
61
UIKitCore
-[UIKeyboardImpl applyAutocorrection:] + 652
73
UIKitCore
-[UIKeyboardImpl selectionDidChange:] + 364
74
YYText
-[YYTextView _replaceRange:withText:notifyToInputDelegate:] + 280
75
YYText
-[YYTextView replaceRange:withText:notifyInputDelegate:] + 828
76
UIKitCore
-[UIKeyboardImpl applyAutocorrection:] + 652
88
UIKitCore
-[UIKeyboardImpl selectionDidChange:] + 364
89
YYText
-[YYTextView _replaceRange:withText:notifyToInputDelegate:] + 280
90
YYText
-[YYTextView replaceRange:withText:notifyInputDelegate:] + 828
91
UIKitCore
-[UIKeyboardImpl applyAutocorrection:] + 652
103
UIKitCore
-[UIKeyboardImpl selectionDidChange:] + 364
104
YYText
-[YYTextView _replaceRange:withText:notifyToInputDelegate:] + 280
105
YYText
-[YYTextView replaceRange:withText:notifyInputDelegate:] + 828
106
UIKitCore
-[UIKeyboardImpl applyAutocorrection:] + 652
118
UIKitCore
-[UIKeyboardImpl selectionDidChange:] + 364
119
YYText
-[YYTextView _replaceRange:withText:notifyToInputDelegate:] + 280
120
YYText
-[YYTextView replaceRange:withText:notifyInputDelegate:] + 828
121
UIKitCore
-[UIKeyboardImpl applyAutocorrection:] + 652
133
UIKitCore
-[UIKeyboardImpl selectionDidChange:] + 364
134
YYText
-[YYTextView _replaceRange:withText:notifyToInputDelegate:] + 280
135
YYText
-[YYTextView replaceRange:withText:notifyInputDelegate:] + 828
136
UIKitCore
-[UIKeyboardImpl applyAutocorrection:] + 652
148
UIKitCore
-[UIKeyboardImpl selectionDidChange:] + 364
149
YYText
-[YYTextView _replaceRange:withText:notifyToInputDelegate:] + 280
150
YYText
-[YYTextView replaceRange:withText:notifyInputDelegate:] + 828
151
UIKitCore
-[UIKeyboardImpl applyAutocorrection:] + 652
163
UIKitCore
-[UIKeyboardImpl selectionDidChange:] + 364
164
YYText
-[YYTextView _replaceRange:withText:notifyToInputDelegate:] + 280
165
YYText
-[YYTextView replaceRange:withText:notifyInputDelegate:] + 828
166
UIKitCore
-[UIKeyboardImpl applyAutocorrection:] + 652
178
UIKitCore
-[UIKeyboardImpl selectionDidChange:] + 364
179
YYText
-[YYTextView _replaceRange:withText:notifyToInputDelegate:] + 280
180
YYText
-[YYTextView replaceRange:withText:notifyInputDelegate:] + 828
181
UIKitCore
-[UIKeyboardImpl applyAutocorrection:] + 652
193
UIKitCore
-[UIKeyboardImpl selectionDidChange:] + 364
194
YYText
-[YYTextView _replaceRange:withText:notifyToInputDelegate:] + 280
195
YYText
-[YYTextView replaceRange:withText:notifyInputDelegate:] + 828
196
UIKitCore
-[UIKeyboardImpl applyAutocorrection:] + 652
208
UIKitCore
-[UIKeyboardImpl selectionDidChange:] + 364
209
YYText
-[YYTextView _replaceRange:withText:notifyToInputDelegate:] + 280
- 页面跟踪
06-05 01:37:11.824 [ UISystemKeyboardDockController ] WillAppear
--
506-05 01:37:11.830 [ UICompatibilityInputViewController ] WillAppear
606-05 01:37:11.830 [ UICompatibilityInputViewController ] WillAppear
706-05 01:37:11.841 [ UICompatibilityInputViewController ] WillAppear
806-05 01:37:17.039 [ GLMomentDetails_VC ] WillAppear
906-05 01:37:17.215 [ GLMomentComment_VC ] WillAppear
1006-05 01:37:17.604 [ UISystemKeyboardDockController ] WillAppear
1106-05 01:37:17.609 [ UICompatibilityInputViewController ] WillAppear
1206-05 01:37:17.609 [ UICompatibilityInputViewController ] WillAppear
1306-05 01:37:17.619 [ UICompatibilityInputViewController ] WillAppear
1406-05 01:37:21.659 [ GLSession_VC ] WillAppear
1506-05 01:37:34.060 [ GLMessage_VC ] WillAppear
1606-05 01:37:39.071 [ GLSession_VC ] WillAppear
1706-05 01:37:43.405 [ UISystemKeyboardDockController ] WillAppear
1806-05 01:37:43.412 [ UICompatibilityInputViewController ] WillAppear
1906-05 01:37:43.412 [ UICompatibilityInputViewController ] WillAppear
2006-05 01:37:43.422 [ UICompatibilityInputViewController ] WillAppear