ドキュメント > Fabric > Twitter キット > iOS リファレンス > TWTRTweetTableViewCell
ツイートを表示するテーブルビューセルのサブクラス。
継承元 | UITableViewCell |
宣言場所 | TWTRTweetTableViewCell.h |
tweetView
property
– configureWithTweet:
+ heightForTweet:width:
– calculatedHeightForWidth:
このセル内のツイートビュー。関連する全てのテキストと画像を保持しています。
@property (nonatomic, strong, readonly) TWTRTweetView *tweetView
指定された横幅から高さを計算し、戻り値として返します。バックグラウンドスレッドで使用できます。テーブルセルの高さを計算するのはこの方法が良いでしょう。
+ (CGFloat)heightForTweet:(TWTRTweet *)tweet width:(CGFloat)width
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { TWTRTweet *tweet = self.tweets[indexPath.row]; // Grab the height for this cell CGFloat height = [TWTRTweetTableViewCell heightForTweet:tweet width:CGRectGetWidth(self.view.bounds)]; return height; }
width
テーブルビューセルの横幅。
指定された横幅から高さを計算し、戻り値として返します。 Generally just for use with prototype cells.
- (CGFloat)calculatedHeightForWidth:(CGFloat)width*)dictionary
width
テーブルビューセルの横幅。
ツイートが設定されている作成済みツイートビューの設定をします。ラベル、画像、サムネイルを更新します。
- (void)configureWithTweet:(TWTRTweet *)tweet
tweet
ツイートを表示する TWTRTweet
モデルオブジェクト。