XAM-Consulting / TEditor

MIT License
63 stars 45 forks source link

IOS 11: Application crash on switching keyboard mode #17

Closed Solverx84 closed 7 years ago

Solverx84 commented 7 years ago

Hi,

My application crashes while switching keyboard mode from alphabetic to numeric keyboard.

Do you have any idea how we can fix this problem?

The last row is the one pointing to the offending code.

Error logs: 2017-10-02 14:54:14.179 TEditor.Forms.Sample.iOS[29082:2907807] API error: <_UIKBCompatInputView: 0x7fa7cc751980; frame = (0 0; 0 0); layer = <CALayer: 0x60000142aae0>> returned 0 width, assuming UIViewNoIntrinsicMetric 2017-10-02 14:54:14.179 TEditor.Forms.Sample.iOS[29082:2907807] API error: <_UIKBCompatInputView: 0x7fa7cc751980; frame = (0 0; 0 0); layer = <CALayer: 0x60000142aae0>> returned 0 width, assuming UIViewNoIntrinsicMetric

**2017-10-02 14:54:23.688 TEditor.Forms.Sample.iOS[29082:2907807] * Assertion failure in -[UIInputSetHostView _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3694.4.18/NSLayoutConstraint_UIKitAdditions.m:734

Thanks for your help beforehand! Eric

Solverx84 commented 7 years ago

We downloaded the latest version of ZSSRichTextEditor and it didn't crash. How different is your version compared to the original?

jessejiang0214 commented 7 years ago

Fixed in 9afbfb2c0375736858f9f9caa0df4ed1e141e9e3