OSX在iPhone上隐藏窗口效果
是否可以在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 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
iPhone SDK 中没有内置此类动画,您必须自己创建它。
No such animation is built in to the iPhone SDK, you'd have to create it yourself.