bobspryn / SVWebViewController

A drop-in inline browser for your iOS app.

Home Page:http://samvermette.com/173

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SVWebViewController

is a simple inline browser for iOS. The iPhone UI is highly based on Tweetie’s inline browser, and the iPad version on Reeder.

SVWebViewController features:

  • iPhone and iPad distinct UIs
  • full landscape orientation support
  • back, forward, stop/refresh and action buttons (with actions “Open in Safari” and “Mail Link”)
  • navbar auto-creation depending on how controller is presented (modaly or pushed in nav controller)
  • navbar title set to the currently visible web page
  • talks with setNetworkActivityIndicatorVisible

Installation

  • Drag the SVWebViewController/SVWebViewController folder into your project.
  • Add the MessageUI framework to your project

Usage

(see sample Xcode project in /Demo)

Just like any UIViewController, SVWebViewController can be pushed into a UINavigationController stack:

SVWebViewController *webViewController = [[SVWebViewController alloc] initWithAddress:@"http://google.com"];
[self.navigationController pushViewController:webViewController animated:YES];
[webViewController release];

or be presented modally on top of the currently visible view controller:

SVWebViewController *webViewController = [[SVWebViewController alloc] initWithAddress:@"http://google.com"];
[self presentModalViewController:webViewController animated:YES];	
[webViewController release];

About

A drop-in inline browser for your iOS app.

http://samvermette.com/173

License:MIT License


Languages

Language:Objective-C 100.0%