Instance Method

initWithName:webFrameView:webView:

Initializes the receiver with a frame name, web frame view, and controlling web view.

Declaration

- (instancetype)initWithName:(NSString *)name webFrameView:(WebFrameView *)view webView:(WebView *)webView;

Parameters

frameName

The frame name. Typically a custom name or nil (if none is specified). It would be inappropriate to use one of the predefined frame names described in findFrameNamed: as they have special meanings.

view

The view that displays this web frame—the view associated with the receiver.

webView

The parent view that manages the main frame and its children.

Return Value

An initialized web frame.

Discussion

Normally, you do not invoke this method directly. WebView objects automatically create the main frame and subsequent children when new content is loaded. Send a loadRequest: message to the main frame of a WebView to load web content.

This method is the designated initializer for the WebFrame class.