WKWebview崩溃问题Completion handler passed to was called more than once
来源:互联网 发布:大众汽车配件查询软件 编辑:程序博客网 时间:2024/05/22 10:40
最近遇到一个很奇葩的问题,
测试跟模拟环境,WKwebview夹在网页都好好的,但是在apptore下载的包缺出现崩溃在
- (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler
这个方法里.
听云里是
Completion handler passed to -[MatchPlayersVC webView:decidePolicyForNavigationAction:decisionHandler:] was called more than once
回调被唤起两次。。。
查了好久才发现
这个方法里,每一种if情况,只能对应一种回调情况:例如decisionHandler(WKNavigationActionPolicyAllow);或者decisionHandler(WKNavigationActionPolicyCancle);
而我在开始,是回调两次,如下
这种情况,是错误的,而且最重要的一点
xcode打包,不管debug还是release模式的包去真机测试,都不会崩溃,但是到线上AppStore的包必崩溃
换成下边的就好了,每种情况,只对应一种hander
阅读全文
0 0
- WKWebview崩溃问题Completion handler passed to was called more than once
- PRB: OnInitialUpdate() May Be Called More Than Once
- error "flag 'tab_complete_word' was defined more than once caffe
- (引)The item "obj/Debug/xxx.resources" was specified more than once the "Resources
- warning LNK4042: The same object file was specified more than once
- arcplan出现 Attempt to initialize the CRT more than once错误
- 解决 YUM Repository updates is listed more than once in the configuration 的问题
- More than one row with the given identifier was found 问题
- Column specified more than once in the INSERT list.
- 解决“certificateidentity 'iphone distribution' appears more than once”错误
- 解决“certificateidentity 'iphone distribution' appears more than once”错误
- 'block' tag with name 'content' appears more than once
- mybatis中:returned more than one row, where no more than one was expected
- Mybatis中关于:Statement returned more than one row, where no more than one was expected.
- 程序崩溃问题-[UIApplication _runWithMainScene:transitionContext:completion:]
- iOS WKWebview的dealloc方法崩溃问题
- more than one row with the given identifier was found
- woolrich milano was robbed of more than 12
- PHPExcel常用操作说明
- spring-mvc的文件上传
- jsp传值问题如何获取参数问题
- UVa1605 Building for UN 构造
- C语言常见的编译错误
- WKWebview崩溃问题Completion handler passed to was called more than once
- VMware提示 已将该虚拟机配置为使用 64 位客户机操作系统。但是,无法执行 64 位操作。
- 延迟的几种方式
- java集合 Collection常用功能
- ImageLoader的应用
- python的__slots__
- 第二章 垃圾收集器与内存分配策略
- LeetCode-263. Ugly Number
- 动态规划(2)