Film Veri Tabanı Desteği

Hi,

I'm trying to fetch genres. I can get json data when I browse the url. But when I call the API from code, data returns nil.

This is the problematic code: (allGenres returns nil)

NSURL *genreUrl = [[NSURL alloc]initWithString:@"http://api.themoviedb.org/3/genre/list?api_key=XXX"];

NSData *allGenres = [[NSData alloc] initWithContentsOfURL:genreUrl];

I would appreciate if you help me.

Thanks

Ecem

2 yanıt (toplam 1 sayfanın 1.sayfasında)

Jump to last post

Hi Ecem,

I'm not sure, to be honest. I don't have much experience in objective C.

Have you taken a look at the 2 iOS libraries we have available? Perhaps they will give you some insight?

https://www.themoviedb.org/documentation/api/wrappers-libraries

Hi Travis,

Thanks for the quick reply. I'm gonna check out libraries now. Hope it helps to fix the problem.

Bir filmi veya diziyi bulamıyor musun? Eklemek için oturum aç.

Genel

s arama çubuğuna odaklan
p profil menüsünü aç
esc açık bir pencereyi kapat
? klavye kısayol penceresini aç

Medya sayfalarında

b geri git (veya uygulanabilirse ana ekrana)
e sayfayı düzenlemeye git

TV sezonu sayfalarında

(sağa ok) sonraki sezona git
(sol ok) önceki sezona git

TV bölüm sayfalarında

(sağa ok) sonraki bölüme git
(sol ok) önceki bölüme git

Tüm görüntü sayfalarında

a resim ekle penceresini aç

Tüm düzenleme sayfalarında

t çeviri seçiciyi aç
ctrl+ s formu gönder

Tartışma sayfalarında

n yeni tartışma oluştur
w izleme durumunu değiştir
p umumi/hususi değiştir
c kapalı/açık değiştir
a etkinliği aç
r tartışmayı yanıtla
l son yanıta git
ctrl+ enter mesajını gönder
(sağa ok) sonraki sayfa
(sol ok) önceki sayfa

Ayarlar

Bu öğeyi derecelendirmek veya bir listeye eklemek ister misiniz?

Giriş