Cocoa GUI - 效果、抛光
我正在创建一个车载控制屏幕(将在 Mac Mini 上运行),并正在寻找一些“效果”的库或代码示例。例如,我可能希望当前播放的曲目的名称从右侧飞入。我可能希望屏幕淡入淡出或向上滑动等。
我知道我可以在 Objective-C 中手动编写这些效果。
我希望有一个像 JavaScript 的 scriptaculous 这样的库,可以让我轻松地操作现有的 TextView、ImageView 等。
框架或其他方式是首选。我从事本土可可工作。我不介意图书馆是否收费。
谢谢, 瑞克
I'm creating an in-car control screen (will be run from a Mac Mini) and am looking for some libraries or code samples for "effects". For example, I might want the name of the current track playing to fly in from the right. I might want screens to fade or slide up, etc.
I am aware that I can manually write these effects in Objective-C.
I am hoping there is a library like scriptaculous for JavaScript that allows me to easily manipulate an existing TextView, ImageView, etc.
A framework or otherwise is preferred. I'm working in native cocoa. I don't mind if the library costs $.
Thanks,
Rick
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看核心映像< /strong> 和 核心动画,这两者都可以让您添加视觉效果。 Core Image,顾名思义,仅适用于图像,但可以进行精美的过渡。您可以通过将视图渲染为图像、将图像就地或在视图顶部交换,然后运行到另一个视图的转换来“伪造”UI 动画。
Core Animation 直接与 Cocoa Views 一起工作,并且确实有一些可用的过渡。这两个 API(尤其是 Core Animation)都相当复杂并且有一个学习曲线。
Have a look at Core Image and Core Animation, both of which will allow you to add visual effects. Core Image, as its name implies, works with images only but can do fancy transitions. You can "fake" UI animations with it though by rendering a view to an image, swapping the image in in place or over the top of the view and then running a transition to another view.
Core Animation works directly with Cocoa Views and does have some transitions available. Both APIs (especially Core Animation) are fairly complex and have a learning curve.