I have UITableViewCellone that contains TWTRTweetViewauto-layout. I upload a tweet, for example:


- (void)loadTweetWithId:(NSString *)tweetId {
if (mTweetId == nil || ![mTweetId isEqualToString:tweetId]) {
mTweetId = tweetId;
[[[TWTRAPIClient alloc] init] loadTweetWithID:tweetId completion:^(TWTRTweet *tweet, NSError *error) {
if (tweet) {
NSLog(@"Tweet loaded!");
[mTweetView configureWithTweet:tweet];
[mTweetView setShowActionButtons:YES];
[mTweetView setPresenterViewController:self.viewController];
[mTweetView setNeedsLayout];
[mTweetView layoutIfNeeded];
[mTweetView layoutSubviews];
hc.constant = mTweetView.frame.size.height;
[self updateConstraints];
[self layoutIfNeeded];
[self layoutSubviews];
[self.tableView setNeedsLayout];
[self.tableView layoutIfNeeded];
[self.tableView layoutSubviews];
} else {
NSLog(@"Tweet load error: %@", [error localizedDescription]);
}
}];
}
}
When a tweet-loaded cell doesn't resize, unless I scroll it and scroll it back. I tried several approaches, as you can see in the code snippet. But not from these works. My table view uses a full layout approach that does not implement cell height for a row function. How can i fix this?
UPDATE:
Using:
[self.tableView beginUpdates]
[self.tableView endUpdates]
impossible, because when I do this, all the cells are redrawn, and there is a very big jump, and this is unacceptable. I also confirmed that the tweet completion block works in the main thread.

UPDATE 2:
- id id. , /.
3:
xib . . , .
TwitterKit, TWTRTweetTableViewCell, . . , .