Comments (12)
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.
Hey there!
What do you mean by weird?
from dznwebviewcontroller.
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.
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.
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.
I second the feature request to hide the title/url bar but leave the navigation bar.
from dznwebviewcontroller.
This should be pretty easy to implement. Give it a try guys! 😉
from dznwebviewcontroller.
Any solution?
from dznwebviewcontroller.
Can anyone implement this tweak and submit a PR pls? I'm really short of time lately.
from dznwebviewcontroller.
from dznwebviewcontroller.
This has been addressed by @eflyjason in #52
Mind having a look @WenchaoD?
from dznwebviewcontroller.
Sure @dzenbot
from dznwebviewcontroller.
Related Issues (20)
- Turbolinks not enabling back/forward buttons HOT 1
- HTTP urls not working please help me on this HOT 2
- Dismissing during page load causes KVO crash HOT 10
- Loading URLs HOT 1
- Carthage support? HOT 5
- How to use a custom User Agent? HOT 4
- Required load request method HOT 3
- Support for popupwindow in few websites HOT 3
- toolbarHidden HOT 1
- EXC_BAD_ACCESS
- How to dismiss the view? HOT 4
- how to play video in website HOT 1
- Undefined symbols for architecture x86_64: HOT 1
- Warnings in Xcode 8.3 and Swift 3.1
- Carthage install not working
- toolbar block bottom of website content
- post method
- URL loads but don't get callback of didFinish Navigation method or other callback methods HOT 1
- iOS 11 status bar overlaps with DZWebViewController top bar HOT 1
- Problems with Apple Review
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dznwebviewcontroller.