Created
April 26, 2016 20:44
-
-
Save vburojevic/f065cd6d5b2d95ac15b9f29b080508fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { | |
guard let items = items else { | |
return 0 | |
} | |
return items.count | |
} | |
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { | |
guard let item = items?[indexPath.row] else { | |
return | |
} | |
// Open item details | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment