summaryrefslogtreecommitdiff
path: root/Juick/MessageCell.h
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2014-02-01 19:47:09 +0400
committerGravatar Vitaly Takmazov2014-02-01 19:47:09 +0400
commit6ee0e66d56f02c4b534dd83fca24cb0c1f408f06 (patch)
tree6935c24fd232f38baf68cc59e61bef681eb8b588 /Juick/MessageCell.h
parent297dfab2b57a00a7a40328d68af30dc6b32d3320 (diff)
0ld-zkul hax0r manual cell layout
Diffstat (limited to 'Juick/MessageCell.h')
-rw-r--r--Juick/MessageCell.h17
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