Commit 6ed5d517ce41076f49fe5e76ac8cd4904b93e17c

Authored by 王军波
1 parent 0a7cf801

点赞按钮位置

LiveVideoCloud/Classes/Sections/homeSections/View/LVCCommentCell.m
@@ -98,7 +98,7 @@ @@ -98,7 +98,7 @@
98 - (UIButton *)likeButton { 98 - (UIButton *)likeButton {
99 if (!_likeButton) { 99 if (!_likeButton) {
100 _likeButton = [UIButton buttonWithType:UIButtonTypeCustom]; 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 [_likeButton setImage:[UIImage imageNamed:@"videoSupportNormal"] forState:UIControlStateNormal]; 102 [_likeButton setImage:[UIImage imageNamed:@"videoSupportNormal"] forState:UIControlStateNormal];
103 [_likeButton setImage:[UIImage imageNamed:@"videoSupport"] forState:UIControlStateSelected]; 103 [_likeButton setImage:[UIImage imageNamed:@"videoSupport"] forState:UIControlStateSelected];
104 _likeButton.titleLabel.font = [UIFont systemFontOfSize:12]; 104 _likeButton.titleLabel.font = [UIFont systemFontOfSize:12];