File tree Expand file tree Collapse file tree
Example/MessageDisplayKitWeChatExample/MessageDisplayKitWeChatExample/VIews Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ - (void)updateUserInterface {
133133 CGRect commentTableViewFrame = CGRectZero;
134134 if (shouldShowComment) {
135135 commentTableViewFrame = self.commmentTableView .frame ;
136- commentTableViewFrame.origin .y = CGRectGetMaxY (likeContainerViewFrame);
136+ commentTableViewFrame.origin .y = CGRectGetMaxY (likeContainerViewFrame) + (shouldShowLike ? 0 : 4 ) ;
137137 commentTableViewFrame.size .height = self.comments .count * 16 ;
138138 self.commmentTableView .frame = commentTableViewFrame;
139139 }
Original file line number Diff line number Diff line change 99#import < Foundation/Foundation.h>
1010#import < UIKit/UIKit.h>
1111
12- #define kXHMenuTableViewWidth 140
12+ #define kXHMenuTableViewWidth 122
1313#define kXHMenuTableViewSapcing 7
1414
15- #define kXHMenuItemViewHeight 40
15+ #define kXHMenuItemViewHeight 36
1616#define kXHMenuItemViewImageSapcing 15
1717#define kXHSeparatorLineImageViewHeight 0.5
1818
Original file line number Diff line number Diff line change @@ -51,12 +51,19 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
5151 if (self) {
5252 self.backgroundColor = [UIColor clearColor ];
5353 self.textLabel .textColor = [UIColor whiteColor ];
54- self.textLabel .font = [UIFont systemFontOfSize: 16 ];
54+ self.textLabel .font = [UIFont systemFontOfSize: 12 ];
5555
5656 self.selectedBackgroundView = self.menuSelectedBackgroundView ;
5757 [self .contentView addSubview: self .separatorLineImageView];
5858 }
5959 return self;
6060}
6161
62+ - (void )layoutSubviews {
63+ [super layoutSubviews ];
64+ CGRect textLabelFrame = self.textLabel .frame ;
65+ textLabelFrame.origin .x = CGRectGetMaxX (self.imageView .frame ) + 5 ;
66+ self.textLabel .frame = textLabelFrame;
67+ }
68+
6269@end
You can’t perform that action at this time.
0 commit comments