问题描述
我想知道如何开发具有多个部分的IOS表视图控制器.
I would like to know how to develop an IOS Table View Controller with multiple sections.
例如,附带的是DrawSomething帐户页面的屏幕截图.它们具有不同的标题,例如帐户设置,密码,以及下面的一些按钮.
For example attached is a screenshot from DrawSomething account page. They have different headings like account settings, password, then some buttons below.
是否将其设置为一个UITableViewController,然后为页眉和每个表单元格的自定义单元格设置图像背景,还是在一个主视图控制器中全部使用多个不同的视图控制器进行设置?
Would this be setup as one UITableViewController then setup image backgrounds for the headers and customized cells for each table cell, or would this be setup using multiple different view controllers all within one main view controller?
此外,可以使用NIB进行设置和设计,还是使用代码来生成它会更容易.我理解这是开发人员的选择和您的意见,但是在通常的实践中,如果可以在NIB中进行设计(这样)会更容易.尽管似乎无法在NIB中设计表格视图布局...
Further to this, could this be setup and designed using a NIB or would it be alot easier using code to generate this. I understand that it the choice of the developer and your opinion but in common practice if it is possible to design (as such) within the NIB it would be easier. Although designing a table view layout in NIB does not appear to be possible...
推荐答案
对于这样的事情,由于内容没有真正的动态,因此我将使用UIScrollView并将其直接放置在各个元素上.
For something like this, since there's nothing really dynamic about the content, I would use a UIScrollView and just place the various elements on it directly.
这篇关于设置具有多个部分和按钮的tableviewcontroller的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!