-- The usage of EurekaCustomRow
Based on current business requirement:
Already be used in our project:
AttachmentCell
XMCRMScheduleInfoViewController
XMUserInfoViewController
XMCRMScheduleInfoViewController中user 显示, 1、是调用EurekaCustomRow而实现的吗?
编辑日程:
cell.clickAddButton如果不调用,则隐藏?
-- Eureka实现
Cell: 最底层继承UITableViewCell
Row: protocol, 处理action celldata相关
RowOf中定义value
-- 循环动态创建row
import Foundation
import Eureka
public final class TestFormController: FormViewController {
override public func viewDidLoad() {
super.viewDidLoad() // should call the method, if you want to tableView from FormViewController, or you should define a new one here.
let section: Section = Section()
for _ in 1...10 {
section <<< LabelRow() {
$0.value = "fiona"
}
}
form +++ section
}
}
-- Form 文件
题外话:Form中的文件名都很短,这是swift的风格?还是Form本身业务需求,从而产生这样的命名风格?
Form == UITableView
FormDelegate == UITableViewDelegate && UITableViewDataDelegate
-- Core 文件
FormViewController在这个文件中实现。