M2DWebViewController 2.0.1

M2DWebViewController 2.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2021

Maintained by Akira Matsuda.




  • By
  • Akira Matsuda

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, [email protected]

License

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