Basic and Digest Access Authentication support for iOS UIWebView.
objc
// #import <UIWebViewAuthentication/UWAWebView.h>
-
(void)viewDidLoad { [super viewDidLoad];
self.webView = [[UWAWebView alloc] initWithFrame:self.view.frame]; [self.view addSubview:self.webView];
NSString* url = @"http://www.httpwatch.com/httpgallery/authentication/authenticatedimage/default.aspx"; NSURLRequest* request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]]; [self.webView loadRequest:request]; }
Installation
-------------
http://cocoapods.org/
platform :ios, '5.0'
pod 'UIWebViewAuthentication', :podspec => 'https://raw.github.com/synapsesoft/UIWebViewAuthentication/master/UIWebViewAuthentication.podspec'