0
My webView
perfectly accesses Google, but if I try to access another page like my site or a local address, it gets white screen.
class ConectViewController: UIViewController {
@IBOutlet weak var webView: UIWebView!
var urlPath : String = "https://afurlan.com.br" // cria url - possivel erro no colocar o https (pode colocar http)
func loadAddressURL () { // cria funcão
let requestURL = NSURL(string: urlPath)
let request = NSURLRequest(URL: requestURL!)
webView.loadRequest(request) // carrega
}
override func viewDidLoad() {
super.viewDidLoad()
loadAddressURL()
}
}
In the Xcode log the following text :
Security has blocked a cleartext HTTP (http://) Resource load Since it is insecure. Temporary exceptions can be configured via your app’s Info.plist file.
Have you added permission to access HTTP connections? See this answer.
– Paulo Rodrigues
I did this now and just tested and check successfully... Please write this in a reply to set as solved Thanks
– Augusto Furlan