DMWebBrowserViewController for iOS
A simple web browser view controller instantiated view blocks. Uses a UINavigationBar for dismiss and refresh actions.
Simple Usage:
copy the DMWebBrowserViewController.h and .m files to your project
import DMWebBrowserViewController.h into your class
create a DMWebBrowserViewController object using the initializer initWithURL:startLoadingWithBlock:andEndLoadingWithBlock:
add your actions to block areas
- DMWebBrowserViewController *webBrowser = [[DMWebBrowserViewController alloc]
- initWithURL:[NSURL URLWithString:@"http://github.com/dimoreira"]
- startLoadingWithBlock:^{
- NSLog(@"start loading web browser page");
- } andEndLoadingWithBlock:^{
- NSLog(@"end loading web browser page");
- }];
DMWebBrowserViewController *webBrowser = [[DMWebBrowserViewController alloc]
initWithURL:[NSURL URLWithString:@"http://github.com/dimoreira"]
startLoadingWithBlock:^{
NSLog(@"start loading web browser page");
} andEndLoadingWithBlock:^{
NSLog(@"end loading web browser page");
}];you can use a optional method for set the color of the UINavigationBar



Recent Comments