ios - Settings.app中的表是如何实现的?

标签 ios swift

我的应用程序中需要类似的界面(如“设置”)。不想重新发明轮子,想知道这是两个 UITableView 还是一个包含两个部分的 UITableView?那么如何在底部实现标签(“双击...”)呢?

谢谢。

enter image description here

最佳答案

这是一个带有节页眉和页脚的经典分组表格。页眉和页脚都使用默认外观。

这是从数据源方法返回页眉和页脚时得到的结果:

func table​View(UITable​View, title​For​Header​In​Section:​ Int)

func table​View(UITable​View, title​For​Footer​In​Section:​ Int)

关于ios - Settings.app中的表是如何实现的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42873911/

相关文章:

ios - UITableView 在未分配给父级 UIViewController View 属性时不滚动

ios - 获取 "nested push animation can result in corrupted navigation bar"

xcode - 应用程序 :didReceiveRemoteNotification:fetchCompletionHandler error

Swift - 方法存在,但错误 :unrecognized selector sent to instance

ios - 回到第一个 View Controller 时无法停止音乐

objective-c - 转移 NSIndexPath 实体

javascript - 在服务器上为 socket.io 运行 index.js 时出错

ios - Playground 因递归值类型而崩溃

objective-c - 如何关闭自动滑动返回导航 Controller ? swift

ios - CALayer.contents 在 UI 线程中绘制?