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

2021-03-15  本文已影响0人  StevenHu_Sir

错误信息打印如下:

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
上一篇 下一篇

猜你喜欢

热点阅读