佚名通过本文主要向大家介绍了支付宝钱包,支付宝钱包电脑版,支付宝钱包登录官网,支付宝钱包登录,支付宝钱包登陆等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题:支付宝钱包和支付宝有什么区别 支付宝支付之后的回调处崩溃
描述:
解决方案1:
描述:
支付之后,会崩溃到 - (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.
遍寻网络,没有找到答案,特来请教,希望各位大哥大姐,不吝赐教。。。如果又是什么问的不清楚的地方,请大家指出,我再补充。
解决方案1:
看代码错误提示是截屏报错了,不知道你是否用了截屏的代码。可能截到了键盘。键盘和当前的页面不在一个window上所以。导致了错误,不过我也不太清楚到底是问题。你可以试着再拉起支付户端前使用下面的代码试试
for (UIWindow* window in [UIApplication sharedApplication].windows) {
if (![window respondsToSelector:@selector(screen)] || window.screen == [UIScreen mainScreen]) {
[window drawViewHierarchyInRect:window.bounds afterScreenUpdates:YES];
}
}