EddyBorja / MLPAutoCompleteTextField

UITextfield subclass with autocomplete menu. For iOS.
Other
1.21k stars 222 forks source link

tapping on textfield empty table appear. #17

Open rockylive007 opened 11 years ago

rockylive007 commented 11 years ago

can you add the option to appear a empty table while its being load from the web service. or else we cant find whether the function is working or not.

in other words there should be activity indicator until the data is fetched from the server to app.

EddyBorja commented 11 years ago

Sure. Shouldn't be too hard.

What will you expect if no results are fetched back from the server? Should the table disappear?

rockylive007 commented 11 years ago

add a bool property to turn on/off this feature.

its like this. we need some kind of indicator to wait until the results appear. currently it's taking lot of time to appear table in a slow internet connection.

my suggestion is on tap of the textfield empty table will appear with the max number of rows we specified in the beginning.

after the handler is executed with the objects of the below method table will goes to normal behavior.

rockylive007 commented 11 years ago

if no results are fetched back from the server table will disappear

rockylive007 commented 11 years ago

if no results are fetched back from the server table will disappear

thank you

On Tue, Oct 29, 2013 at 11:05 PM, Eddy Borja notifications@github.comwrote:

Sure

What will you expect if no results are fetched back from the server? Should the table disappear?

— Reply to this email directly or view it on GitHubhttps://github.com/EddyBorja/MLPAutoCompleteTextField/issues/17#issuecomment-27325101 .

EddyBorja commented 10 years ago

I'm guessing maybe the activity indicator should appear as a little spinning icon toward the right side of the textfield? This prevents the table opening up for no reason.

rockylive007 commented 10 years ago

cool. that would be great..

damien-rivet commented 10 years ago

Hi there,

I had the same issue, I returned an empty NSArray in top of autoCompleteTextField in my CustomDatasource, the table doesn't appear anymore.

Just my .02

EddyBorja commented 10 years ago

Thanks for that tip.

On Wed, Mar 26, 2014 at 5:31 AM, Damien R. notifications@github.com wrote:

Hi there,

I had the same issue, I returned an empty NSArray in top of autoCompleteTextField in my CustomDatasource, the table doesn't appear anymore.

Just my .02

Reply to this email directly or view it on GitHubhttps://github.com/EddyBorja/MLPAutoCompleteTextField/issues/17#issuecomment-38663815 .