Assistance de TMDB

Hi !

I just create a iPhone app few days ago. It downloaded TMDB JSON data . The app runs very well until last night ! Suddenly , It crashes without any code change . I later found if I disable “backdrop_path “ key , instead I tried “poster_path “ the app will run again ! It looks like I am not able to use “backdrop_path” key any more ! Is there any change last night ? All The rest of key parameters are fine ! ) Please help if you. Could ! Thanks !

5 réponses (sur la page 1 sur 1)

Jump to last post

Hi @Jenny_Liu,

There have been no changes, no. I've heard from some users from time to time who weren't handling nil items properly. Are you? Both poster_path and backdrop_path can be nil.

Hi Travis The data query is for “upcoming movie” ! I am pretty sure the app (with backdrop_path) works fine yesterday ! But ,last night , It just crashes in front of me without any change on my code ! As I mentioned earlier, poster_path works fine ! Still a puzzle to me ! Do not know how to solve it ? ! backdrop_path: String

I should not say app crash ! The simulator still works , but Just No data shows up in my app tableview cell ! I think it was due to query data from backdrop_path not matching key definition properly???

Travis I think you are right ! I go back and change the “backdrop_path :String? (to optional) ! And it works now ! Thanks for your help ! I solve the issue ! The app worked well until last night , thus I did not know this could be an issue ! Thanks again for your help !

Happy to hear you sorted it out.

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenêtre ouverte
? Ouvrir la fenêtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenêtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion