Andi_bz 0 Posted January 9, 2016 Share Posted January 9, 2016 Hi, I think a live search would be great. To implement this my suggestion: - (IBAction)searchTextFieldEditingChanged:(UITextField *)sender { SEL fetchSearchResults = @selector(downloadData); //call the search function [[self class] cancelPreviousPerformRequestsWithTarget:self selector:fetchSearchResults object:nil]; [self performSelector:fetchSearchResults withObject:nil afterDelay:1]; } If the user input text under 1 sec the search will not be executed to avoid continues emby-server requests. Link to comment Share on other sites More sharing options...
Luke 37068 Posted January 9, 2016 Share Posted January 9, 2016 Thanks, great idea. Feel free to submit a pull request. Link to comment Share on other sites More sharing options...
Andi_bz 0 Posted January 9, 2016 Author Share Posted January 9, 2016 Where can I find the source code? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now