그냥 일반 UITableViewCell
를 서브 클래스와 그것의 내부 TWTRTweetView
를 사용합니다. 어느 그것은 본질적으로 유형 TWTRTweetView
의 함께 IBOutlet 대신있는 tableview 셀에 그것을 사용하십시오 tweetView 속성이, TWTRTweetTableViewCell
이 무엇을 기본적으로.
놓습니다 TWTRTweetView
의 상단에 적절한 위치에 like and retweets
카운트에 대한 사용자 지정 레이블입니다. 더 많은 정보를 들어
- (void)configureCell:(TWTRTweet *)tweet{
self.customTweetView.showActionButtons = true;
[self.customTweetView configureWithTweet:tweet];
self.likesCount.text = [NSString stringWithFormat:@"%lld", tweet.likeCount];
self.retweetsCount.text = [NSString stringWithFormat:@"%lld", tweet.retweetCount];
}
: check this SO post