diff options
Diffstat (limited to 'Juick/MessageCell.h')
-rw-r--r-- | Juick/MessageCell.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/Juick/MessageCell.h b/Juick/MessageCell.h index 7972470..a042ff3 100644 --- a/Juick/MessageCell.h +++ b/Juick/MessageCell.h @@ -7,26 +7,35 @@ // #import <UIKit/UIKit.h> +#import <SDWebImage/UIImageView+WebCache.h> #import "TTTAttributedLabel.h" #import "Message.h" #import "NSString+HTML.h" +#import "UIImage+Utils.h" #define kLabelHorizontalInsets 20.0f +@interface MessageCell : UITableViewCell<TTTAttributedLabelDelegate, SDWebImageManagerDelegate> -@interface MessageCell : UITableViewCell<TTTAttributedLabelDelegate> - +@property (strong, nonatomic) IBOutlet Message *message; @property (strong, nonatomic) IBOutlet UILabel *titleLabel; @property (strong, nonatomic) IBOutlet UILabel *timestampLabel; @property (strong, nonatomic) IBOutlet UIImageView *avatar; -@property (strong, nonatomic) IBOutlet TTTAttributedLabel *bodyLabel; +@property (strong, nonatomic) IBOutlet UILabel *bodyLabel; @property (strong, nonatomic) IBOutlet UIImageView *attach; @property (strong, nonatomic) IBOutlet UILabel *summaryLabel; - (void) updateFonts; -- (void) bind:(Message *)msg; +- (CGRect) avatarRect; +- (CGRect) timestampRect; +- (CGRect) titleRect; +- (CGRect) bodyRect; +- (CGRect) attachRect; +- (CGRect) summaryRect; + +- (CGFloat) heightForCell; @end |