Facebook iPhone应用程序:根视图动画风格
我正在开发一个与 Facebook 具有相同布局的应用程序。我的主屏幕上有几个图标,并且想让我的 viewController 看起来就像点击其中一个图标时一样。
知道它是如何工作的吗?
I'm working on an application that has the same layout as Facebook. I have several icons on the home screen and would like to to make my viewController appear like when one of the icons are tapped.
Any idea on how it works?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否想知道点击图标时如何以标准方式显示视图?即如何制作一个图像按钮
或者
您是在问如何使视图像 Facebook 应用程序中那样展开?
如果您要问第一个,则需要在界面生成器中拖动按钮,然后在按钮属性窗口中的第一个选项卡中的“类型”下拉列表中选择它(默认为圆角矩形) ,选择自定义。然后将图像或背景设置为您的图像(看看看起来更好的)。然后您可以像普通按钮一样将其与 IBAction 链接起来。
如果您问第二个问题,如何使视图扩大和缩小,请查看我的教程:
如何在 iPhone SDK 上实现放大/缩小视图
Adam
Are you asking how to make a view appear in the standard way when the icon is tapped? ie how to make a button which is an image
Or
are you asking how to make the view expand out like they do in the facebook app?
If your are asking the first one, you need to drag on a button in interface builder, then select it, in the button attributes window, in the first tab, in the 'type' drop-down (which is default to rounded rect), choose custom. then set either the image or background to your image (see whatever looks better). You can then link it up like a normal button with an IBAction.
If you are asking the second question, how do you make the views expand out and shrink back, then check out my tutorial:
How to make expanding/shrinking views on iPhone SDK
Adam