Sono i tweet di recupero che utilizzano twitter api 1.1 e li visualizzo in TWTRTweetTableViewCell ma TWTRTweetView mostra lo spazio per i media/immagine ma l'immagine/supporto che non mostra solo testo viene visualizzato in TWTRTweetView.Le immagini e i media non vengono visualizzati in TWTRTweetTableViewCell TwitterKit ios
per mostrare i tweet
TWTRTweet *tweet = [self.arraySocialPosts objectAtIndex:indexPath.row];
TWTRTweetTableViewCell *cell = (TWTRTweetTableViewCell *)[tableView dequeueReusableCellWithIdentifier:@"TweetCell" forIndexPath:indexPath];
[cell configureWithTweet:tweet];
cell.tweetView.delegate = self;
return cell;
e per andare a prendere i tweet
NSArray *responseJSON = [NSJSONSerialization
JSONObjectWithData:responseData
options:NSJSONReadingAllowFragments
error:&jsonError];
if (jsonError)
{
NSString* errorMessage = [NSString stringWithFormat:@"There was an error reading your Twitter feed. %@",[jsonError localizedDescription]];
[[AppDelegate instance] showError:errorMessage];
}
else
{
dispatch_async(dispatch_get_main_queue(), ^{
if(completion){
NSArray *tweetsArray = [TWTRTweet tweetsWithJSONArray:responseJSON];
//(NSArray *)tweetsWithJSONArray:(NSArray *)array
completion(tweetsArray);
}
});
}
}
}];
quando stampo il responseJSON che contiene il supporto URL.
Il mio problema è stato risolto. In realtà sto usando un'altra app di Twitter o token e segreti e proviamo a ottenere i dati di un'altra app. Per questo le immagini non vengono visualizzate. Dopo aver sostituito il token effettivo e nascosto, il problema è stato risolto. –