~/talk

Table View Controllers in Swift

Talkat try! Swift Tokyo 2016 · 2016-03-10..03-12· [swift]
slides:none on file

Builds a reusable UITableViewController that actually works: starts with a concrete Person table, then generalizes with generics so the same controller displays Pokemon or people, swaps a cell-configuration method for a passed-in closure to customize subtitle or detail, adds editing with delete and an undo history implemented as a generic struct that toggles the undo bar button, and finally pulls many initializer flags into a single configuration struct for easy reuse and testing. Uses Swift, UITableViewController, Xcode and playgrounds; code runs.

AI-written summary · about

  1. 0:00Intro
  2. 0:48Create Table View Controller
  3. 2:48Create Cell
  4. 4:51Configure Cell
  5. 7:14Generics
  6. 9:10Editing
  7. 12:23Undo
  8. 16:10Undo function
  9. 17:40Clean up
  10. 19:00Simpler table view
  11. 21:00Testability
  12. 21:50Initializer
  13. 22:11Summary
  14. 24:18Examples
  15. 24:43Tiny Networking
  16. 26:28Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.