flutter_boost icon indicating copy to clipboard operation
flutter_boost copied to clipboard

iOS present lifecycle not execute

Open liumengdi666 opened this issue 6 years ago • 3 comments

flutter version:1.12.13 hotfix8 从一个flutter页面经过flutterboost present跳转到另一个flutter页面后异常,界面不能响应,没有attach. 用navigator push 或 pop没有问题. 调试发现使用present后FLBContainer的lifecycle没有执行,所以界面异常,请问这块有没有解决方案吗?

liumengdi666 avatar Jun 12 '20 05:06 liumengdi666

vc.modalPresentationStyle = UIModalPresentationOverCurrentContext|UIModalPresentationFullScreen; 这里我设置了这句话

liumengdi666 avatar Jun 12 '20 07:06 liumengdi666

present的时候可能上一个页面的viewdisappear在新页面的viewappear之后,这时候可能就不能响应了。试试在completeHandler里再次调用viewwillappear

MrLittleStrong avatar Jun 12 '20 07:06 MrLittleStrong

在native侧FLBPlatform协议present对应方法的实现中,主动去调用presentingVC的beginAppearanceTransition相关方法,这样它的生命周期就会恢复正常

menttofly avatar Sep 23 '20 02:09 menttofly