iPad 布局:创建“查找我的朋友”布局
我想创建类似“查找我的朋友”应用程序的东西,就所有视图的布局方式而言,但无法弄清楚它是如何完成的:
- 它似乎是一个 UITabBarContrller,但在每个选项卡中与 UISplitViewControllers 混合。我认为这是不可能/不可取的?
- 如何为每个分割视图中的每个视图获取这些圆角边缘(如果它们确实是分割视图)
- 它们如何将视图与边界和彼此间隔开?当我创建一个简单的 SplitViewController 时,两个主从视图都完全嵌入到它们的视图中,彼此之间或屏幕边界上没有边距。
- 如何让缝合的皮革背景在所有视图后面如此贴合?
我很想知道这是如何做到的。有什么想法吗?
I want to create something like the "Find my Friends" app, in terms of how all the views are layed out, but can't figure out how it's done:
- It seems to be a UITabBarContrller but mixed with UISplitViewControllers within each tab. I thought that wasn't possible / advisable?
- How do you get these rounded edges for each view within each split-view (if they are, indeed, splitviews)
- How do they space the views from the borders and from each other? When I create a simple SplitViewController, both the master-detail views are fully embedded in their views with no margins against each other, or against the screen boundary.
- How do you get the stiched leather background to fit so well, behind all the views?
I would love to know how this is done. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不认为这是一个 UISplitViewController,只是一个在 UITabBarController 下多次嵌入具有一些不同参数的自定义视图。
对于其余的问题,我不认为缝合皮革是背景。我认为他们可能会将其放在图像的顶部,并在图像中内置圆角和阴影,并在视图适合的地方设置透明度。另一个选项是使用 CALayer 属性将 UIView 设置为圆角。
就 UIView 间距而言,您只需在 XIB/storyboard 中设置即可。
I don't think this is a UISplitViewController, just a custom view that is embedded multiple times under a UITabBarController with some different parameters.
For the rest of the questions, I don't think the stitched leather is a background. I think they may be putting that on top of the views with the rounded corners and shadows built into the image, and with transparency where the views fit in. The other option is just setting the UIViews to have rounded corners using the CALayer property.
In terms of the UIView spacing, you can just set that in the XIB/storyboard.