UITableView Pt 4: Create Custom Table View Cell, Dynamic Table View Cell Height, Self-Sizing Cell

preview_player
Показать описание

UITableView and UITableViewController are used in almost all iOS apps. This is one of the most critical skills every iOS developer must master.

In this course, we will build a photos browser app using Table View and Table View Controller.

Join me today in this course, you'll learn everything about Table View in these 10 lessons:
1. Introduction to UITableView and UITableViewController
2: Create Data Model Classes to Display On UITableView & UITableViewController
3: Create Basic UITableView and UITableViewController, UITableViewCell
4: Create Custom Table View Cell, Dynamic Table View Cell Height, Self-Sizing Cell
5. Create multiple sections in Table View
6. Delete rows from table view
7. Use drag and drop to move cells around table view
8. Create static table view
9. Use show segue and navigation controller to transition from master to detail view controller
10. Where to go from here.

********************************
*** ABOUT CODE MASTERY ***
********************************
Code Mastery is hosted by Duc Tran, founder of Developers Academy.

This is his free-style no notes, no teleprompter presentation and live coding broadcast with you guys everyday.

*************************
*** MEET DUC TRAN ***
*************************

Duc Tran is founder of Developers Academy, one of the world's leading iOS, Android and Web development trainers.

More than 2,000,000 developers have studied his video trainings; 100,000 developers see his posts each month. Each year, Duc has helped 20,000 plus developers graduate from his online courses or video series.

*************************************************
*** FREE TRAININGS IN IOS DEVELOPMENT ***
*************************************************

/************************************************/
CODE IN THIS COURSE - CONTROLLERS GROUP
/************************************************/

class AppleProductsTableViewController: UITableViewController
{
lazy var productLines: [ProductLine] = {
}()

// MARK: - VC Lifecycle

override func viewDidLoad() {

// Make the row height dynamic
}

override func viewWillAppear(_ animated: Bool) {

}

// MARK: - UITableViewDataSource

override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) - String? {
let productLine = productLines[section]
}

override func numberOfSections(in tableView: UITableView) - Int {
}

override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) - Int {
let productLine = productLines[section]
}

// indexPath: which section and which row
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) - UITableViewCell {



return cell
}

// MARK: - Edit Tableview

override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) {
// tell the table view to update with new data source
}
}

Рекомендации по теме
Комментарии
Автор

I want to describe the tableview pushed to the new viewcontrol, what should I do?

baphanvan
Автор

Please how do I make a table view interactive so that if I select a cell it goes to another view controller

zugwaiyakubu
Автор

if the content of the label is large than your cell, they will be

seanwei
join shbcf.ru