Skip to content

Commit 3c99367

Browse files
laus102dzenbot
authored andcommitted
fix README typo concerning Swift tableView didSelectRowAtIndexPath example (slackhq#662)
1 parent e1604dd commit 3c99367

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ If the user selects any autocompletion view cell on `tableView:didSelectRowAtInd
289289
```swift
290290
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
291291

292-
if tableView.isEqual(tableView) {
292+
if tableView.isEqual(self.autoCompletionView) {
293293
var item = self.searchResult[indexPath.row]
294294
item += " " // Adding a space helps dismissing the auto-completion view
295295

0 commit comments

Comments
 (0)