rylio / otmwebview Goto Github PK
View Code? Open in Web Editor NEWUIWebView subclass with progress and custom context menus
License: MIT License
UIWebView subclass with progress and custom context menus
License: MIT License
Hi! First of all I wanted to congratulate you for your library, it brings on a lot of stuff that were really needed while working with UIWebView.
We implemented your library using CocoaPods the other day, and while the functionality we were expecting from it worked great, we found that in other view controllers that made no import to the OTMWebView class whatsoever previous UIWebView intances weren't working properly. We found that after putting the library in our project, it seems that UIWebView's delegate methods are like being "jammed" and they won't be called anymore. Maybe something is being done in the backs with KVO or NSNotificationCenter or something that can disrupt UIWebView delegates communication?
We verified this, as after uninstalling OTMWebView using Cocoapods, previous UIWebView instances started working right again.
Any clue?
Thanks!
Is it possible to release to Appstore?
I set the user agent using the method described, but it does not work. The only method I have found to work has been:
NSDictionary *dictionary = [[NSDictionary alloc] initWithObjectsAndKeys:@"My User Agent", @"UserAgent", nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:dictionary];
You can reach 90% loaded but bounce back to 60% or something. I assume this is from additional resources being loaded in and then everything being recalculated. Can this be fixed easily?
I have your project fully implemented in mine, however I have some other controls i.e. HCDownload, and a image view controller that I want to use.
So when I tap on the "Open Image" in the contextual menu, I want it to open my image view controller.
When I try to implement the code to the proper part, I get this error:
"Member reference base type 'Class' is not a structure or union"
How I'm trying to call the code:
else if ([element[OTMWebViewElementTagNameKey] isEqualToString:@"IMG"]) {
NSURL *imageURL = [NSURL URLWithString:element[OTMWebViewElementSRCKey] relativeToURL:[NSURL URLWithString:element[OTMWebViewElementDocumentURL]]];
[webView loadRequest:[NSURLRequest requestWithURL:imageURL]];
//My Code
WebImageViewController * vc = [[WebImageViewController alloc] initWithURL:imageURL];
[self->navigationController pushViewController:vc animated:YES];
This is weird, seeing how my app is launched in a navigation controller, the view controller loads your webview.
Could just be a noob mistake that I'm clearly overlooking.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.