I am trying to do a query for a TV show using the API. I am able to make it work just fine for a show that only contains one word but for multiple word shows like "The Waling Dead" I am struggling to make the query work.
This is what I have so far:
NSString *url = [NSString stringWithFormat: @"http://api.themoviedb.org/3/search/tv?api_key=#######&query='%@'",self.searchBar.text];
NSURL *searchURL = [NSURL URLWithString:url];
The value for searchURL however is coming up as null every time a multi-word show is entered into my search bar.
Kan du inte hitta en film eller tv-serie? Logga in för att skapa den.
Vill du betygsätta denna artikel eller lägga till den i en lista?
Inte medlem?
Svar från Travis Bell
den 18 december 2013 vid 11:13 AM
Hi DevBoyer,
I can't speak to helping our your specific issue but something that might help is; have you looked at what the two iOS libraries are doing? They might be able to point you in the right direction.