GithubHelp home page GithubHelp logo

roxasora / rxwebviewcontroller Goto Github PK

View Code? Open in Web Editor NEW
1.3K 1.3K 207.0 7.29 MB

实现类似微信的 webView 导航效果,包括进度条,左滑返回上个网页或者直接关闭,就像 UINavigationController

Objective-C 100.00%

rxwebviewcontroller's Issues

关于RxWebViewNavigationViewController的返回判断

判断直接用的是webView.canGoBack属性,但如果当前push的RxWebViewController,所加载的页面是包含重定向的话,即加载A网页,自动跳转到B网页,canGoBack值会为真。此时点击【返回】按钮,则goBack加载A网页,自动跳B网页,相当于重新又加载了一遍B网页,无法pop出去了。

内存问题

发现每一次进一次webview 内存大概增加10M 还没有来得及分析原因

一年了,项目还是没有更新

非常喜欢这个项目,但是有很多BUG没有解决,如果R主没有太多精力来维护这个项目,建议添加几个合作者来完善这个项目。

自己写导航栏时,即设置navigation bar的hidden为yes会出现pop问题

navigationBar.hidden在viewAppear与view Disappear里执行, 点击的返回按钮是自己写得,点击后发现 [self popViewControllerAnimated:YES]会执行2次,导致每次都POP到rootViewController。我尝试在拦截里通过navigationBar.hidden判断,但是没有效果。在这里我建议是否可以在跳到网页的时候,自己写一个navigation bar,然后在拦截里通过navigation bar的类型判断,当然这个navigation bar的样式依旧可以自定义,在这里非常感谢您提供了这么好用加载网页框架!

在真机上面返回无效

我写了个demo,模拟器上面可以正常运行,但是真机上面侧滑返回无效,iOS9.3系统,XCode7.3开发。是有什么要注意的没弄好吗?

当前一个VC设置setNavigationBarHidden为YES的时候,第二次进入webVC的时候,返回有BUG

把当前VC设置setNavigationBarHidden为YES, 然后进入WebViewVC,点返回,页面返回当当前界面,再次进入,再点返回,页面就不会返回了,而且返回按钮也没用了!
//当前VC设置代码

  • (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.delegate = self;
    }

pragma mark - UINavigationControllerDelegate

  • (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated{
    if (viewController == self) {
    [self.navigationController setNavigationBarHidden:YES animated:YES];
    }else{
    [self.navigationController setNavigationBarHidden:NO animated:YES];
    self.navigationController.delegate = nil;
    }
    }
    进入同一个webVC两次,就会出现

如果使用init初始化 调用js方法失效

self.shouldSnapshot = NO; self.enableHostInfo = NO;
原因是因为 -(instancetype)initWithUrl:(NSURL *)url这个方法里有上面的设置,
但是我实在看不懂这两个属性怎么会影响到[self.webView stringByEvaluatingJavaScriptFromString:@""]这句代码失效,还请指点一下。

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.