ios设置屏幕用户界面 [英] ios settings screen user interface

查看:70
本文介绍了ios设置屏幕用户界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的应用程序中设置一个设置屏幕,就像iPhone内部的设置一样。单击设置时,我们会看到带有圆边的不同部分,全部为白色,某些hte选项有箭头,有些是开/关按钮。

I'm trying to make a setting screen in my application like the settings that exists inside of the iPhone. When clicking on settings, we see the different sections with rounded edges, all white, some of hte options have arrows, some are on/off buttons.

Apple是如何实现这一目标的?它是 UITableView 吗?有没有关于如何使选项看起来相似的文档?或者是否有Apple的设置屏幕实现的开源示例?

How did Apple acheive this? Is it a UITableView? Is there any documentation on how to make the options look similar? Or is there any open source example of Apple's settings screen implementation?

我想创建一个具有类似功能的设置屏幕,因此我想知道它是如何实现的设置屏幕。不幸的是,用搜索找不到这个。

I would like to make a settings screen with similar functionality, hence I wanted to know how it was achieved for the settings screen. Unfortunately, could not find this with searching.

推荐答案

这是一个分组的UITableView。

It is a grouped UITableView.

Grouped TableView

你可以几乎可以非常轻松地为Apple的设置应用程序构建类似的应用程序,特别是如果您使用Storyboard和静态单元格。

You can pretty much build a similar app to Apple's settings app very easily, specially if you use Storyboards and static cells.

您需要设置其配件类型并推送新视图如果一个单元格有某种附件类型。无论如何,即使你采用古老的方式(iOS 5之前),也不难建立一个。你现在可以非常快速地建造这样的东西。

You will need to set their accessory types and push a new view if a cell has a certain accessory type. At any rate it's not hard to build one, even if you go the ancient way (pre iOS 5). You can build something like that really fast nowadays.

这篇关于ios设置屏幕用户界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆