SwiftTableView
Basic example of using the Swift language to populate a UITableView
Install / Use
/learn @brotchie/SwiftTableViewREADME
Simple Swift language example of populating a UITableView with data. Includes an enum type to demonstrate Swift's handling of algebraic data types.
Just a few gotchas I found while hacking on this code:
- The swift equivalent of
[UITableViewCell class]isUITableViewCell.self; - XCode autocomplete for protocol methods breaks when you inherit from
UITableViewDelegateandUITableViewDataSource; - GitHub needs to add syntax highlighting for Swift :)
