iOS开发支付宝集成没有安装支付宝的情况下不跳网页

集成支付宝之后 如果没有安装支付宝,按道理应该是会直接跳支付宝网页支付。
不知道从第几版开始,最近用了最新得SDK。是11月18号的,跳转了不了,找了很多方法,最后用以下这个方法可行: NSArray *array = [[UIApplication sharedApplication] windows];
            UIWindow* win=[array objectAtIndex:0];
            [win setHidden:NO];
            [[AlipaySDK defaultService] payOrder:orderString fromScheme:appScheme callback:^(NSDictionary *resultDic) {
                NSLog(@"reslut = %@",resultDic);
                if ([resultDic[@"resultStatus"] isEqualToString:@"9000"]) {
                    ShowWebVC *gotoVC = [[ShowWebVC alloc] init] ;
                    gotoVC.isShow = @"YES";
                    gotoVC.urlStr = [NSString stringWithFormat:@"%@emallcardorder/completion.do?payType=2&orderCode=%@",service_IP,bus.rspInfo[@"orderCode"]];
                    [self.navigationController pushViewController:gotoVC animated:YES];
                }else{
                    [SVProgressHUD showErrorWithStatus:@"支付失败"];
                }
            }];
应该是页面的显示重叠的问题导致没有出现

你可能感兴趣的:(iOS开发支付宝集成没有安装支付宝的情况下不跳网页)