Andi_bz 0 Posted January 9, 2016 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.
Luke 40114 Posted January 9, 2016 Posted January 9, 2016 Thanks, great idea. Feel free to submit a pull request.
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