简体   繁体   English

Cocoa Touch如何设计类似Facebook iPhone应用程序主屏幕的界面?

[英]Cocoa Touch how to design the interface like facebook iPhone application's home screen?

I am just curious how facebook for iPhone application can display a list of icons with the text, then all the icons shake to allow user to change the position of each item. 我只是很好奇,iPhone应用程序的facebook如何显示带有文本的图标列表,然后所有图标摇动以允许用户更改每个项目的位置。

What kind of control is that, and is there some sample code that do the same thing? 那是一种什么样的控制,并且有一些示例代码可以执行相同的操作吗?

I think it must be standard because it exists as well in home screen of iPhone and iPod app to choose the tab item. 我认为它必须是标准的,因为它也存在于iPhone和iPod应用程序的主屏幕中以选择选项卡项目。

Thank you. 谢谢。

It's not a standard control. 这不是标准控件。 It's generally implemented with Core Animation and a rotation transform. 通常通过Core Animation和旋转变换来实现。

Apple discourages App developers from imitating the spring board, claiming it is confusing for the user. 苹果不鼓励App开发人员模仿跳板,声称这会使用户感到困惑。 So don't expect standard controls for this. 因此,不要期望为此使用标准控件。

You can of course implement it yourself with animation. 您当然可以自己用动画来实现它。 Basic (property based) animation should be sufficient. 基本的(基于属性的)动画应该足够了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM