OSX在iPhone上隐藏窗口效果

发布于 2024-08-22 06:21:39 字数 92 浏览 4 评论 0原文

是否可以在 iPhone 上“轻松”地在 UIView 上制作 MAC OSX 隐藏窗口效果?当我说轻松时,我的意思是使用现有的库或工具......

谢谢

Is it possible to 'easily' make on the iphone a MAC OSX hide window effect on a UIView? When I say easily, I mean using existing libraries or tools...

Thanks

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

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

发布评论

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

评论(2

花伊自在美 2024-08-29 06:21:39

您可以使用 UIKit 中的动画来实现此效果。只需将框架或变换设置到新位置并调用 commitAnimations 即可。您可以调整速度、动画曲线和其他各个方面,使您的动画看起来像您想要的任何效果。所有这些都是通过 UIView 类完成的。

http://developer.apple.com/ iphone/library/documentation/UIKit/Reference/UIView_Class/UIView/UIView.html

You can use animations in UIKit to achieve this effect. Just set your frame or transformation to it's new location and call commitAnimations. You can adjust the speed, animation curve, and various other aspects to make your animation look like whatever effect you want. All of this is done with the UIView class.

http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIView_Class/UIView/UIView.html

倥絔 2024-08-29 06:21:39

iPhone SDK 中没有内置此类动画,您必须自己创建它。

No such animation is built in to the iPhone SDK, you'd have to create it yourself.

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