Skip to content

0x0c/M2DWebViewController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

M2DWebViewController

CI Status 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"]

or this

M2DWebViewController *viewController = [[M2DWebViewController alloc] initWithURL:[NSURL URLWithString:@"https://github.com/0x0c/M2DWebViewController"]];
__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:^{
	}];
};

Requirements

iOS 12 or later.

Installation

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

pod "M2DWebViewController"

Author

Akira Matsuda, akira.m.itachi@gmail.com

License

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