Comments (3)
如需其他信息,可以同样英文名司内企微联系
from qmui_ios.
我也遇到这个问题,我是密码输入框有这个问题,普通输入框没有,你解决了吗?
from qmui_ios.
根据 flutter 源码 FlutterTextInputPlugin.mm#L749-L776,FlutterSecureTextInputView
继承自 FlutterTextInputView
,而 FlutterTextInputView
继承自 UIView
,所以本质上 FlutterSecureTextInputView
是一个普通 view,并非输入框。
然后 flutter 为了让 FlutterSecureTextInputView
以输入框的身份存在,它重写了 isKindOfClass:
,在里面对 UITextField
返回 YES
,于是在 FlutterSecureTextInputView
初始化的时候,会走进去 QMUITheme 这个 if 判断里,QMUIThemePrivate.m#L150 ,然后试图为它注册一个任意 UITextField
都拥有的方法 attributedText
。
但由于 FlutterSecureTextInputView
是假的 UITextField
,且它伪装的手段也没写完整(应该重写 respondsToSelector:
),所以就导致命中 assert。
综上所述,结论是这属于 flutter 的 bug,你们可以提 issue 给他们,QMUI 后续版本也不会为其写任何兼容代码。
在此之前,也可以在业务项目里通过 runtime 给 FlutterSecureTextInputView
动态添加一个叫 attributedText 的方法,里面什么都不用做,就可以避开这种问题。
from qmui_ios.
Related Issues (20)
- 自定义一个继承自QMUIModalPresentationViewController的vc后,只要import后,就会报错 HOT 5
- 在iOS17的系统会产生runtime崩溃 HOT 1
- QMUISearchController 的 hidesNavigationBarDuringPresentation 设置成 NO 时,在 iOS 17 上 searchBar frame 异常
- 还会更新iOS17的支持版本吗? HOT 1
- 无问题 HOT 1
- RTL布局下,使用QMUIImagePreviewView的问题
- iOS17系统切换主题时图片不会变化 HOT 1
- 在新起的 UIWindow 里对一个 editable = NO 的输入框选中文本出现系统菜单时,菜单被 UIWindow 盖住
- enabledZoomViewInZoomImageView 设置为yes,放大之后无法切换下一个数据资源
- QMUIConsole 咨询 HOT 1
- QMUISearchController 在 active 时如果被强制切走则可能出现内存泄漏
- 去除零宽字符崩溃 HOT 1
- 更新版本 HOT 1
- 增加UITableView和UICollectionView 的分区、cell圆角 HOT 2
- QMUIAssetsManager类未提供PHFetchOptions的自定义检索 HOT 1
- 大哥,给个文档啊,光demo看的太难受了 HOT 2
- 可能是QMUITextView 引起的闪退 HOT 1
- QMUIConsole 在展示巨量 log 时会卡死,内存高峰然后崩溃
- iOS 13 以上版本delegate 中window为空的情况崩溃. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qmui_ios.