The Movie Database Support Forum

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.

1 Antwort (Seite 1 von 1)

Jump to last post

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.

Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.

Allgemein

s Fokus auf Suchfeld
p Profil öffnen
esc Fenster schließen
? Tastenkürzel anzeigen

Videos

b Zurück
e Bearbeiten

Staffeln

Nächste Staffel
Vorherige Staffel

Episoden

Nächste Episode
Vorherige Episode

Bilder

a Poster oder Hintergrundbild hinzufügen

Editieren

t Sprachauswahl öffnen
ctrl+ s Speichern

Diskussionen

n Neue Diskussion erstellen
w Beobachten an / aus
p Diskussion öffentlich / privat
c Diskussion öffnen / schließen
a Diskussionsverlauf anzeigen
r Auf Diskussion antworten
l Letzte Antwort anzeigen
ctrl+ enter Senden
Nächste Seite
Vorherige Seite

Einstellungen

Diesen Eintrag bewerten oder zu einer Liste hinzufügen?

Anmelden