Inherits from UIViewController
Conforms to UIWebViewDelegate
Declared in VDARModalWebViewController.h

Overview

A simple viewcontroller managing a web view which is used to display web pages from AR Models.

This class has to be sub-classed in order to provide control button such as next, previous for a web page as well as a close button.

The web view can be accessed with the webView property. By default, the view hierarchy is composed of a simple plain view and the web view is added as a child of this plain view. Both views occupy the whole screen.

Tasks

  •   initialURL

    The initial URL used to load and create this web view controller

    property
  •   webView

    The web view used to display the content

    property
  •   toolbarHidden

    Tells the controller whether or not a toolbar containing web view controls should be hidden or not. If this is hidden, a close button should still be displayed to allow users to close the view controller.

    property
  • – loadURL:withModelPath:

    This loads the given URL in the web view.

Properties

initialURL

The initial URL used to load and create this web view controller

@property (nonatomic, readonly) NSURL *initialURL

Availability

Version 2.1.1

Discussion

The initial URL used to load and create this web view controller

Declared In

VDARModalWebViewController.h

toolbarHidden

Tells the controller whether or not a toolbar containing web view controls should be hidden or not. If this is hidden, a close button should still be displayed to allow users to close the view controller.

@property (nonatomic) BOOL toolbarHidden

Availability

Version 2.1.1

Discussion

Tells the controller whether or not a toolbar containing web view controls should be hidden or not. If this is hidden, a close button should still be displayed to allow users to close the view controller.

Declared In

VDARModalWebViewController.h

webView

The web view used to display the content

@property (nonatomic, readonly) UIWebView *webView

Availability

Version 2.1.1

Discussion

The web view used to display the content

Declared In

VDARModalWebViewController.h

Instance Methods

loadURL:withModelPath:

This loads the given URL in the web view.

- (void)loadURL:(NSURL *)url withModelPath:(NSString *)modelPath

Parameters

url

The URL to load

modelPath

The model path at which to load the asked file. If the URL is an absolute URL, nil can be passed.

Availability

Version 2.1.1

Discussion

This loads the given URL in the web view.

This method is called a single time after the creation of the view controller. The provided URL becomes the initialURL value. If the URL is a just a filename, it will be loaded with respect to provided model path.

Declared In

VDARModalWebViewController.h