OpenFileInWebView 0.0.2

OpenFileInWebView 0.0.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by azu, akuraru.



  • By
  • azu

This library to open (local) file in WebView.

Main use case is debug.

Installation

pod 'OpenFileInWebView'

Usage

  • Open in WebView or Open in your system.
@interface OpenFileInWebView : NSObject
// @return viewcontroller to load file.
// support file type depended on webview.(pdf,doc etc..)
+ (UIViewController *)viewControllerToOpenFile:(NSString *) filePath;
@end
UIViewController *controller = [OpenFileInWebView viewControllerToOpenFile:[[NSBundle mainBundle] pathForResource:@"index" ofType:@"pdf"]];
[self.navigationController pushViewController:controller animated:YES];

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT