TWTRTweetTableViewCell Class Reference
Inherits from | UITableViewCell |
---|---|
Declared in | TWTRTweetTableViewCell.h |
tweetView
The Tweet view inside this cell. Holds all relevant text and images.
@property (nonatomic, readonly) TWTRTweetView *tweetView
Declared In
TWTRTweetTableViewCell.h
– configureWithTweet:
Configures the existing Tweet view with a Tweet. Updates labels, images, and thumbnails.
- (void)configureWithTweet:(TWTRTweet *)tweet
Parameters
tweet |
The |
---|
Declared In
TWTRTweetTableViewCell.h
+ heightForTweet:style:width:showingActions:
Returns how tall the Tweet view should be.
+ (CGFloat)heightForTweet:(TWTRTweet *)tweet style:(TWTRTweetViewStyle)style width:(CGFloat)width showingActions:(BOOL)showActions
Parameters
tweet |
the Tweet |
---|---|
style |
the style of the Tweet view |
width |
the width of the Tweet |
showActions |
whether the Tweet view will be displaying actions |
Return Value
the calculated height of the Tweet view
Discussion
Uses the system to calculate the Auto Layout height. This is the same as calling sizeThatFits: on a cached TWTRTweetView instance to let the system calculate how tall the resulting view will be including the image, Retweet view, and optional action buttons.
Note: The Auto Layout engine will throw an exception if this is called on a background thread.
Declared In
TWTRTweetTableViewCell.h