[iOS] TableView 의 Delegate, DataSource


[iOS] TableView 의 Delegate, DataSource

TableView 에서는 두 가지의 Protocol 을 제공한다.첫 번째는 UITableViewDelegate, 두 번째는 UITableViewDataSoruce. (이하 Delegate, Datasource)애플 공식 문서에 따르면 각 Protocol 이 담당하는 역할은 아래와 같다.- DelegateCreate and manage custom header and footer views.Specify custom heights for rows, headers, and footers.Provide height estimates for better scrolling support.Indent row content.Respond to row selections.Respond to swipes and other actions in table rows.Support editing the table's content.즉, Table 의 (주로 Custom) Layout 을 관리하고 (row에 대한) 사용자의 Action 을 받아 처..........



원문링크 : [iOS] TableView 의 Delegate, DataSource