nfhipona / AutoCompleteTextField

TextField with smart suggestion for email inputs
http://nfhipona.github.io/AutoCompleteTextField/
MIT License
65 stars 13 forks source link

Extra steps needed to get AutoCompleteTextField working #3

Closed lfarah closed 8 years ago

lfarah commented 8 years ago

myTextField.autoCompleteTextFieldDataSource = self didn't work for me. I had to set myTextField.dataSource = self to make it work.

nfhipona commented 8 years ago

I have recheck this 'autoCompleteTextFieldDataSource' and it is working. How am I able to replicate this one? thanks

nfhipona commented 8 years ago

I will update this tomorrow and I will lock 'dataSource'. And it should only be accessible from the IB.

lfarah commented 8 years ago

LFLoginController is using it. Search for txtEmail.autoCompleteTextFieldDataSource on LFLoginController.swift

nfhipona commented 8 years ago

okay let me clone

nfhipona commented 8 years ago

@lfarah I have checked this and it was working great. You're just maybe confused because there is a 'setDelimiter("@")' so that means it will only suggest like : 'gmail' after '@' like @'gmail.com'. :)