美文网首页
iOS TextField二次点击崩溃(Crash必现)

iOS TextField二次点击崩溃(Crash必现)

作者: StevenHu_Sir | 来源:发表于2021-03-15 23:03 被阅读0次

错误信息打印如下:

Cannot show Automatic Strong Passwords for app bundleID: com.xxx due to error: Cannot save passwords for this app. Make sure you have set up Associated Domains for your app and AutoFill Passwords is enabled in Settings
image.png

原因分析:

UICompatibilityInputViewController是UIViewController的子类,我在UIViewController的category中重写了dealloc析构方法,导致UICompatibilityInputViewController过度释放而崩溃

解决办法:

注释掉category中的dealloc方法(使用方法交换后仍然会过度释放)

UIViewController+Extension.m

相关文章

网友评论

      本文标题:iOS TextField二次点击崩溃(Crash必现)

      本文链接:https://www.haomeiwen.com/subject/owalcltx.html