这个实现的方法也很多啊。 比较笨拙就是一个一个加咯UITextField and UITableViewCell。 但也可以用一个UITableView来完成啊。 就是用Section和Section's Header and Footer。 为了可维护性,建议用Section's Header and Footer。
取决于你要支持的最低系统版本,如果是从7开始支持,恭喜你,用groupStyle的tableView分分钟搞定。如果要支持6,那就plainStyle,自己控制sectionHeader、Footer的高度来调整UI效果了,比较费手脚。
这个实现的方法也很多啊。
比较笨拙就是一个一个加咯UITextField and UITableViewCell。
但也可以用一个UITableView来完成啊。
就是用Section和Section's Header and Footer。
为了可维护性,建议用Section's Header and Footer。