如何使 Web URL 在从应用程序打开时不显示动画?

发布于 2024-11-27 15:39:06 字数 212 浏览 3 评论 0原文

我使用以下代码在应用程序中单击按钮时打开 URL:

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.innotrack.eu///"]];

但是当它在 safari 上打开 URL 时,它会产生动画,要求是阻止此动画。如何实现?

I'm using following code to open URL on a button click from application:

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.innotrack.eu///"]];

But when it opens the URL on safari, it animates, Requirement is to prevent this animation. How to achieve it?

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

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

发布评论

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

评论(2

寄人书 2024-12-04 15:39:06

像轮播中的窗口交换一样动画?这是 iOS4 中切换应用程序时的本机行为,我认为您无法避免这种情况。

您可以做的是创建一个应用内 UIWebView 并使用它来显示网站。这样您就可以控制在视图之间切换时发生的动画。

Animate like window exchange in carousel? That is native behavior when switching applications in iOS4 and I don't think you can avoid that.

What you can do is create an inapp UIWebView and use it to display website. That way you have control over animations that happen when switching between views.

如若梦似彩虹 2024-12-04 15:39:06

我们只有权命令 UIApplicationopenURL:,而且我们似乎无权命令它在打开 URL 时不显示动画。

We have only the right to command UIApplication to openURL: and, it seems, we are not authorized to order it not to animate while opening the URL.

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