我正在努力转向 https://ppyazi.com/viral进入 Web View 以提交到 Apple App Store。我正在尝试创建一个 UITextfield
,当有人输入他们的 Twitter 用户名时,它会请求 https://ppyazi.com/viral/home.php?username=(UsernameHere) .基本上,我希望 UITextfield
的功能与 https://ppyazi.com/viral 上的登录部分相同。 .
最佳答案
您可以添加一个 UIButton
和请求 ppyazi url
的操作,或者您可以声明:
textview.delegate = self;
并实现 UITextViewDelegate
并使用:
func textViewDidEndEditing(_ textView: UITextView) -> Bool {
//Do your Code to request URL
return true
}
关于html - 如何添加请求网页的 UITextfield,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48179493/