Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 7 hours 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 (almost 2 years ago)
- Last Synced: 2025-01-14T19:05:12.196Z (29 days 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
[![CI Status](http://img.shields.io/travis/Akira/M2DWebViewController.svg?style=flat)](https://travis-ci.org/Akira/M2DWebViewController)
[![Version](https://img.shields.io/cocoapods/v/M2DWebViewController.svg?style=flat)](http://cocoadocs.org/docsets/M2DWebViewController)
[![License](https://img.shields.io/cocoapods/l/M2DWebViewController.svg?style=flat)](http://cocoadocs.org/docsets/M2DWebViewController)
[![Platform](https://img.shields.io/cocoapods/p/M2DWebViewController.svg?style=flat)](http://cocoadocs.org/docsets/M2DWebViewController)![](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)## 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.