This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)webViewDidStartLoad:(UIWebView *)webView | |
{ | |
_isAuthenticated = NO; | |
} | |
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType | |
{ | |
if ([request.URL.scheme isEqualToString:@"https"]) { | |
// Handle HTTPS via separate request. | |
if (!_isAuthenticated) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// OWRDemoViewController.m | |
// OWRDemo | |
// | |
// Copyright (c) 2014, Ericsson AB. | |
// All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without modification, | |
// are permitted provided that the following conditions are met: | |
// |