Giter VIP home page Giter VIP logo

Comments (12)

hesyifei avatar hesyifei commented on July 18, 2024 1

Found a solution to display title only :)

First set showPageTitleAndURL to false

let webViewController = BeaconWebViewController(URL: loadUrl)
webViewController.showPageTitleAndURL = false
webViewController..........

Then in class BeaconWebViewController: DZNWebViewController, override didFinishNavigation

override func webView(webView: WKWebView, didFinishNavigation navigation: WKNavigation!) {
    self.title = self.webView.title
}

Done! 😄

from dznwebviewcontroller.

dzenbot avatar dzenbot commented on July 18, 2024

Hey there!
What do you mean by weird?

from dznwebviewcontroller.

WenchaoD avatar WenchaoD commented on July 18, 2024

For example, sometimes we want the url to be secret to protect some potential threat(it can't indeed, but better than do nothing).

from dznwebviewcontroller.

jyounus avatar jyounus commented on July 18, 2024

I just came across a "weird" behaviour with the title bar.
The initial URL I load is for a blog post with a relatively big title. Everything is fine.
However if I now press on a link to go to the homepage of that blog, the URL and title are relatively small (character count wise). The problem is, the frame of the label doesn't seem to position the x coordinate properly. It's not centred, it simply has the same x value as the big title/url was.

I tried to fix it by manually working out the final label frame size in the setTitle method but no luck. :/

from dznwebviewcontroller.

dzenbot avatar dzenbot commented on July 18, 2024

This looks like it's another issue, not related to @f33chobits's feature request.
Please open a new issue, and submit a screenshot to better understand.

from dznwebviewcontroller.

nsvrana avatar nsvrana commented on July 18, 2024

I second the feature request to hide the title/url bar but leave the navigation bar.

from dznwebviewcontroller.

dzenbot avatar dzenbot commented on July 18, 2024

This should be pretty easy to implement. Give it a try guys! 😉

from dznwebviewcontroller.

hesyifei avatar hesyifei commented on July 18, 2024

Any solution?

from dznwebviewcontroller.

dzenbot avatar dzenbot commented on July 18, 2024

Can anyone implement this tweak and submit a PR pls? I'm really short of time lately.

from dznwebviewcontroller.

hesyifei avatar hesyifei commented on July 18, 2024

@dzenbot see 5e75217

from dznwebviewcontroller.

dzenbot avatar dzenbot commented on July 18, 2024

This has been addressed by @eflyjason in #52
Mind having a look @WenchaoD?

from dznwebviewcontroller.

WenchaoD avatar WenchaoD commented on July 18, 2024

Sure @dzenbot

from dznwebviewcontroller.

Related Issues (20)

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.