每个被点击的链接的 Xcode UIView

发布于 2024-10-09 00:52:00 字数 230 浏览 1 评论 0原文


我想创建一个显示网站的应用程序,并且每次用户单击链接时都能够在 UIView 的新会话中打开链接。
我需要它这样做,因为我想在 UIView 加载时创建一个效果,并且我不想为所有页面创建大量的 UIView。
实际上,我已经使用 uiview 显示了一个网站,但我无法控制选择链接后 uiview 的显示方式,并且我无法更改站点代码。
有谁知道如何在 xcode 上的标签栏应用程序中执行此操作?
谢谢

Hi
I want to create an app that displays a web site and to be able to open the link in a new session of the UIView every time a user clicks on a link.
I need it to act like that because i want to create an effect whenever the UIView loads and i don't want to create tons of UIView for all of the pages.
Actually, i already displayed a website with the uiview but i cant control how the uiview appears after a link is selected and i cant change the site code.
Does anyone know how to do it inside a tab bar app on xcode?
Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

月隐月明月朦胧 2024-10-16 00:52:00

我知道您是否使用 UIWebViewDelegate以及适当地停止链接加载并在新视图中打开链接的方法。

I know if you use UIWebViewDelegate and the methods appropriately to stop the link loading and open the link in a new View.

酒绊 2024-10-16 00:52:00

我为每个选项卡使用了一个网络视图,并且它有效。
我用过这个方法
因为它更容易访问并且加载
所有的网页浏览
一起而不是单独加载。
谢谢

i used a webview for each tab and it worked.
I've used this method
because it was more accessible and it loaded
all of the webviews
together instead of loading one.
Thanks

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文