Skip to content

Basic example of using the Swift language to populate a UITableView

Notifications You must be signed in to change notification settings

brotchie/SwiftTableView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages