https://github.com/0x0c/m2dwebviewcontroller
Simple built-in web view controller using WebKit.
https://github.com/0x0c/m2dwebviewcontroller
ios ios-app ios-lib objective-c webkit
Last synced: 5 months ago
JSON representation
Simple built-in web view controller using WebKit.
- Host: GitHub
- URL: https://github.com/0x0c/m2dwebviewcontroller
- Owner: 0x0c
- License: mit
- Created: 2014-10-13T12:21:46.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-04-16T07:16:10.000Z (about 2 years ago)
- Last Synced: 2025-01-14T19:05:12.196Z (6 months ago)
- Topics: ios, ios-app, ios-lib, objective-c, webkit
- Language: Objective-C
- Homepage:
- Size: 442 KB
- Stars: 25
- Watchers: 8
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# M2DWebViewController
[](https://travis-ci.org/Akira/M2DWebViewController)
[](http://cocoadocs.org/docsets/M2DWebViewController)
[](http://cocoadocs.org/docsets/M2DWebViewController)
[](http://cocoadocs.org/docsets/M2DWebViewController)

## 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](http://cocoapods.org). 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.