Loading HTTPS in UIWebView

I have a page with UIWebView, it was working well until recently some of the redirection changed, with the URL from HTTP to HTTPS. The page could not be displayed.

Error logged:

Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid.

Now, I wish to bypass all the cert checks and allow all the certs. Tried using this How to use NSURLConnection to connect with SSL for an untrusted cert? but the error still comes out. Help, anyone? Thanks!


Actually found a solution here: UIWebView to view self signed websites (No private api, not NSURLConnection) - is it possible?

What it actually does is to intercept the UIWebView to launch a NSURLConnection to allow the server to be authenticated, therefore then continue the connection using UIWebView, and cancels out the NSURLConnection. Reason so is because after authorising the server once, the rest of the continuous connection would not be blocked. Hope i'm clear. :)

Need Your Help

How to return a value using a closure and assigning the value to a global variable

php closures

What I am trying to achieve is to use closure to add the variables present in the array and assigning the result to $mul variable, but it doesn't seem to work.

Simple Injector LifetimeScope with DbContext

signalr simple-injector

I am using simpleInjector I would like to construct just one instance of a dbContext during a lifetime scope.