Created
April 26, 2016 20:45
-
-
Save vburojevic/fa985fd5766673f062fc19ccbadd21b6 to your computer and use it in GitHub Desktop.
Swift
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