mnbayan / AutocompleteTextfieldSwift

Simple and straightforward sublass of UITextfield to manage string suggestions
MIT License
290 stars 66 forks source link

didSelectRowAtIndexPath never called #49

Open ImperoIT opened 8 years ago

ImperoIT commented 8 years ago

didSelectRowAtIndexPath is never called. As per the previous issue #19 i check my code it doesnt contain this method also public override func resignFirstResponder() -> Bool { self.autoCompleteTableView?.hidden = true

return super.resignFirstResponder()

}

can you please let me know the issue

ghost commented 7 years ago

Did you ever solve this? I am having the same issue in Swift 3.0

nooralibutt commented 7 years ago

Having same issue. @Collibhoy did you resolve the issue?

mhtranbn commented 7 years ago

Having same issue. @Collibhoy did you resolve the issue?

francis-bware commented 7 years ago

Fixed it by replacing

public func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {

with

public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {

sidshah13 commented 7 years ago

how to call on didselect new viewcontroller?

sidshah13 commented 7 years ago

simulator screen shot 10-mar-2017 5 29 07 pm

how to set autocomplte table below the textfield?