brotchie / SwiftTableView

Basic example of using the Swift language to populate a UITableView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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] is UITableViewCell.self;
  • XCode autocomplete for protocol methods breaks when you inherit from UITableViewDelegate and UITableViewDataSource;
  • GitHub needs to add syntax highlighting for Swift :)

About

Basic example of using the Swift language to populate a UITableView


Languages

Language:Swift 100.0%