Inherits from UIWebView
Conforms to UIWebViewDelegate
Declared in SPiDWebView.h
SPiDWebView.m

Overview

WebView for handling authorization against SPiD.

Tasks

Properties

Public methods

Private methods

Properties

completionHandler

@property (nonatomic, copy) void ( ^ ) ( NSError *) completionHandler

isPending

@property (nonatomic) BOOL isPending

requestURL

@property (strong, nonatomic) NSURL *requestURL

Class Methods

authorizationWebViewWithCompletionHandler:

Creates a authorization WebView.

+ (SPiDWebView *)authorizationWebViewWithCompletionHandler:(void ( ^ ) ( NSError *))completionHandler

Parameters

completionHandler

Called after authorization is completed

Return Value

The new WebView

Declared In

SPiDWebView.h

forgotPasswordWebViewWithCompletionHandler:

Creates a forgot password WebView

+ (SPiDWebView *)forgotPasswordWebViewWithCompletionHandler:(void ( ^ ) ( NSError *))completionHandler

Parameters

completionHandler

Called after forgot password is completed

Return Value

The new WebView

Declared In

SPiDWebView.h

signupWebViewWithCompletionHandler:

Creates a registration WebView

+ (SPiDWebView *)signupWebViewWithCompletionHandler:(void ( ^ ) ( NSError *))completionHandler

Parameters

completionHandler

Called after signup is completed

Return Value

The new WebView

Declared In

SPiDWebView.h

webView:

Creates a SPiDWebView

+ (SPiDWebView *)webView:(NSURL *)requestURL

Parameters

requestURL

The request URL to open

Return Value

The SPiDWebView

Declared In

SPiDWebView.m

Instance Methods

webView:didFailLoadWithError:

Sent if a web view failed to load a frame.

- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error

Parameters

webView

The web view that failed to load a frame.

error

The error that occurred during loading.

Declared In

SPiDWebView.m

webView:shouldStartLoadWithRequest:navigationType:

Sent before a web view begins loading a frame.

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType

Parameters

webView

The web view that is about to load a new frame.

request

The content location.

navigationType

The type of user action that started the load request.

Return Value

YES if the web view should begin loading content; otherwise, NO .

Declared In

SPiDWebView.m

webViewDidFinishLoad:

Sent after a web view finishes loading a frame.

- (void)webViewDidFinishLoad:(UIWebView *)webView

Parameters

webView

The web view has finished loading.

Declared In

SPiDWebView.m