I have a problem, i create a custom cell with TWTRTweetView, in first load height is very close
but when you scroll the view reload and the height is correct
This is my code for the viewController
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString * tableIdentifier = @"TwitterCell";
TwitterCell * cell = (TwitterCell *)[tableView dequeueReusableCellWithIdentifier:tableIdentifier];
if (cell == nil){
NSArray * nib = [[NSBundle mainBundle]loadNibNamed:@"TwitterCell" owner:self options:nil];
cell = [nib objectAtIndex:0];
}
[cell configureCell:[tweetsArray objectAtIndex:indexPath.row]];
return cell;
}
And this is my code for the custom cell
- (void)configureCell:(NSString *)tweetID{
TWTRAPIClient * client = [[TWTRAPIClient alloc]init];
[client loadTweetWithID:tweetID completion:^(TWTRTweet * tweet, NSError * error){
if (tweet){
[self.tweetView configureWithTweet:tweet];
}else{
NSLog(@"Error al cargar el tweet: %@", [error localizedDescription]);
}
}];
}