API error: <_UIKBCompatInputView: 0x13fd1d7c0; frame = (0 0; 0 0); layer = <CALayer: 0x1c4426e40>> returned 0 width, assuming UIViewNoIntrinsicMetric

蹲街弑〆低调 提交于 2019-12-03 17:17:12

问题


I'm using Ionic 3 on iPhone 7 plus with iOS 11. When I run my App, and fill in some text/input fields (basic forms) the app freezes for a few seconds and becomes completely unresponsive (which isn't good, not to say the least). I noticed this error coming up in Xcode, maybe that's the problem. Has anyone else encountered similar errors?

API error: <_UIKBCompatInputView: 0x13fd1d7c0; frame = (0 0; 0 0); layer = > returned 0 width, assuming UIViewNoIntrinsicMetric


回答1:


Remove deprecated items from the forRoot config in app.module.ts

IonicModule.forRoot(),

Eg. remove these:

{
  scrollPadding: true,
  scrollAssist: false
}

See https://ionicframework.com/docs/utilities/config for more info.



来源:https://stackoverflow.com/questions/47076989/api-error-uikbcompatinputview-0x13fd1d7c0-frame-0-0-0-0-layer-cala

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!