Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个 iOS 应用程序。如何知道 UIWebview 中显示的当前部分并相应地更改导航栏的标题?标题将是用户正在阅读的部分。UIWebView 中显示的 html 文件中的部分由<h2>标签分隔。
<h2>
如果有人正在寻找这个问题的答案,这可能会有所帮助。它基本上是使用javascript函数完成的。