TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
This library to open (local) file in WebView.
Main use case is debug.
pod 'OpenFileInWebView'
@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];
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT