他们是怎么做到的?...避免无聊、千篇一律的标准 iPhone 应用程序
我试图找出用于启动操作(例如,更改列表的排序标准)以及切换视图(例如,帮助、选项)的自定义浮动“托盘”的最佳设计。我希望托盘一开始是折叠的,因此初始视图是全屏的。当用户触摸屏幕一角时,视图会以动画方式滑入到位。再次触摸即可将视图滑开。
我想要的 UI 的最佳示例是我最喜欢的应用程序之一,iThoughts 思维导图(见下文)。这是怎么做到的?我真的很想了解专业人士如何创建如此漂亮的应用程序。我找到的大部分帮助都指向了标准 UITabbar、UIToolbar 等的方向。哈欠。
谢谢!
I am trying to figure out the best design for a custom floating "pallet" for initiating actions (e.g., change sorting criteria of a list) as well as switching views (e.g., Help, Options). I want the pallet to start out collapsed so the initial view is full-screen. When the user touches the corner of the screen the view slides into place with animation. Another touch slides the view out of the way.
The best example of the UI I am going for is one of my favorite apps, the iThoughts mind mapper (see below). How is this done? I really want to learn how the pros create such beautiful apps. Most of the help I find points me in the direction of the standard UITabbar, UIToolbar, etc. Yawn.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该首先学习如何以传统方式进行操作。首先让应用程序运行。然后对其进行扩展。当你完全掌握了常规方法后,再学习Core Animation以及如何使用图层。
You should start off by learning how to do it the conventional way. Make the app work first. Then expand on it. When you fully master the conventional method, learn Core Animation and how to use layers.
假设:
toolbar
的视图设置动画。CGRecttoolbarFrameWhenShown
包含显示状态的框架坐标。BOOLtoolbarHidden
属性来指示工具栏的当前状态。toggleToolbar:
操作。代码:
Assumptions:
toolbar
.CGRect toolbarFrameWhenHidden
property. Correspondingly,CGRect toolbarFrameWhenShown
contains the frame coordinates for the displayed state.BOOL toolbarHidden
property that indicates the current state of the toolbar.toggleToolbar:
action.The code: