ios - 支付宝支付之后的回调处崩溃
黄舟
黄舟 2017-04-18 09:48:16
0
2
458

支付之后,会崩溃到 - (void)processOrderWithPaymentResult:(NSURL *)resultUrl standbyCallback:(CompletionBlock)completionBlock; 这个地方。

错误提示:
Cannot snapshot view (<UIKeyboardImpl: 0x102b26da0; frame = (0 0; 375 258); layer = <CALayer: 0x17023b1c0>>) with afterScreenUpdates:NO, because the view is not in a window. Use afterScreenUpdates:YES.

遍寻网络,没有找到答案,特来请教,希望各位大哥大姐,不吝赐教。。。如果又是什么问的不清楚的地方,请大家指出,我再补充。

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
小葫芦

Looking at the code error message, it is a screenshot of the error. I don’t know if you used the screenshot code. The keyboard may have been intercepted. The keyboard and the current page are not in the same window, so. It caused an error, but I'm not sure what the problem is. You can try using the code below before launching the payment account

for (UIWindow* window in [UIApplication sharedApplication].windows) {
        if (![window respondsToSelector:@selector(screen)] || window.screen == [UIScreen mainScreen]) {
            [window drawViewHierarchyInRect:window.bounds afterScreenUpdates:YES];
        }
    }
巴扎黑

Such a situation also happened to me. This error occurred when I just activated Alipay. It has not been solved yet. My mobile phone system is iOS10.1. Please solve it! ! ! Hurry, hurry, hurry, hurry, hurry! ! ! !

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!