无法从 WebKit 正确使用 https://vintage.myetherwallet.com [英] Can’t use https://vintage.myetherwallet.com properly from WebKit

查看:30
本文介绍了无法从 WebKit 正确使用 https://vintage.myetherwallet.com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我无法从 WebKit 正确使用 https://vintage.myetherwallet.com.问题是当你在 WebKit 中打开它并转到菜单Send Ether &Tokens" > Private key 它不是打开文本字段来输入私钥,但是当您从 Safari 打开它时它可以工作.这是为什么?

Why I can’t use https://vintage.myetherwallet.com properly from the WebKit. The problem is that when you open it in WebKit and go to the menu "Send Ether & Tokens" > Private key it’s not opening the textfield to type the private key, but when you open it from Safari it works. Why is that?

推荐答案

您可以使用 SFSafariViewController

它适用于以下代码:

import UIKit
import SafariServices

class ViewController: UIViewController, SFSafariViewControllerDelegate {

    override func viewDidAppear(_ animated: Bool) {

        if let url = URL(string: "https://vintage.myetherwallet.com/") {
            let vc = SFSafariViewController(url: url)
            vc.delegate = self
            self.present(vc, animated: true)
        }
    }
}

这篇关于无法从 WebKit 正确使用 https://vintage.myetherwallet.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆