Latest 0.2.4
Homepage https://github.com/0x0c/M2DWebViewController
License MIT
Platforms ios 7.0, requires ARC
Frameworks WebKit
Authors

[![CI Status](http://img.shields.io/travis/Akira Matsuda/M2DWebViewController.svg?style=flat)](https://travis-ci.org/Akira Matsuda/M2DWebViewController)
Version
License
Platform



Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Try this

M2DWebViewController *viewController = [[M2DWebViewController alloc] initWithURL:[NSURL URLWithString:@"https://github.com/0x0c/M2DWebViewController"] type:M2DWebViewTypeUIKit];

or this

M2DWebViewController *viewController = [[M2DWebViewController alloc] initWithURL:[NSURL URLWithString:@"https://github.com/0x0c/M2DWebViewController"] type:M2DWebViewTypeUIKit];
__weak typeof(viewController) bviewcontroller = viewController;
viewController.actionButtonPressedHandler = ^(NSString *pageTitle, NSURL *url){
    UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[pageTitle, url] applicationActivities:@[]];
    [bviewcontroller presentViewController:activityViewController animated:YES completion:^{
    }];
};

If you want to use WebKit on iOS8, try this.

M2DWebViewController *viewController = [[M2DWebViewController alloc] initWithURL:[NSURL URLWithString:@"https://github.com/0x0c/M2DWebViewController"] type:M2DWebViewTypeWebKit];

Requirements

iOS7 or later.

Installation

M2DWebViewController is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "M2DWebViewController"

Author

Akira Matsuda, [email protected]

License

M2DWebViewController is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "M2DWebViewController",
    "version": "0.2.4",
    "summary": "Simple built-in web view controller.",
    "homepage": "https://github.com/0x0c/M2DWebViewController",
    "license": "MIT",
    "authors": {
        "Akira Matsuda": "[email protected]"
    },
    "source": {
        "git": "https://github.com/0x0c/M2DWebViewController.git",
        "tag": "0.2.4"
    },
    "screenshots": [
        "https://raw.github.com/0x0c/M2DWebViewController/master/images/1.png",
        "https://raw.github.com/0x0c/M2DWebViewController/master/images/2.png",
        "https://raw.github.com/0x0c/M2DWebViewController/master/images/3.png"
    ],
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*.{h,m}",
    "frameworks": "WebKit"
}

Pin It on Pinterest

Share This