Smarter text/selection will/didChange events (#3699)
Check incoming text editing state and only fire textWillChange:, textDidChange:, selectionWillChange:, selectionDidChange: when the text or selection actually changes. On selectionWillChange: in a text field where auto-correct is enabled, iOS will attempt to auto-correct the word preceding the cursor. This change also updates the text before calling selectionWillChange: to prevent auto-correction on the preceding value of the text field.
Showing
想要评论请 注册 或 登录