Commit 6ed5d517ce41076f49fe5e76ac8cd4904b93e17c
1 parent
0a7cf801
点赞按钮位置
Showing
1 changed file
with
1 additions
and
1 deletions
LiveVideoCloud/Classes/Sections/homeSections/View/LVCCommentCell.m
... | ... | @@ -98,7 +98,7 @@ |
98 | 98 | - (UIButton *)likeButton { |
99 | 99 | if (!_likeButton) { |
100 | 100 | _likeButton = [UIButton buttonWithType:UIButtonTypeCustom]; |
101 | - _likeButton.frame = CGRectMake(self.contentView.bounds.size.width - 60, 0, 60, 44); | |
101 | + _likeButton.frame = CGRectMake([UIScreen mainScreen].bounds.size.width-60, 0, 60, 44); | |
102 | 102 | [_likeButton setImage:[UIImage imageNamed:@"videoSupportNormal"] forState:UIControlStateNormal]; |
103 | 103 | [_likeButton setImage:[UIImage imageNamed:@"videoSupport"] forState:UIControlStateSelected]; |
104 | 104 | _likeButton.titleLabel.font = [UIFont systemFontOfSize:12]; | ... | ... |