Code Monkey home page Code Monkey logo

otmwebview's People

Contributors

otium avatar stevemckenzie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

otmwebview's Issues

OTMWebView seems to "substitute" previous UIWebView instances

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!

Setting User Agent does not work

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];

Loading progress of a page can bounce around.

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?

Pushing navigation controller.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.