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:^{
}];
};
iOS 12 or later.
M2DWebViewController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "M2DWebViewController"
Akira Matsuda, akira.m.itachi@gmail.com
M2DWebViewController is available under the MIT license. See the LICENSE file for more info.