Skip to content

Commit 37bc6ce

Browse files
committed
点赞列表的处理
1 parent 480a766 commit 37bc6ce

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Coding_iOS.xcodeproj/project.pbxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5151,6 +5151,7 @@
51515151
ORGANIZATIONNAME = Coding;
51525152
TargetAttributes = {
51535153
8E47700F198770E700997D05 = {
5154+
DevelopmentTeam = QN5Z87S3LH;
51545155
SystemCapabilities = {
51555156
com.apple.BackgroundModes = {
51565157
enabled = 0;

Coding_iOS/Views/Cell/TweetCell.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ + (CGFloat)contentMediaHeightWithTweet:(Tweet *)tweet{
389389

390390
+ (CGFloat)likeCommentBtn_BottomPadingWithTweet:(Tweet *)tweet{
391391
if (tweet &&
392-
(tweet.likes.intValue > 0
392+
([tweet hasLikesOrRewards]
393393
||tweet.comments.intValue> 0)){
394394
return 15.0;
395395
}else{
@@ -414,7 +414,7 @@ + (CGFloat)locationAndDeviceHeightWithTweet:(Tweet *)tweet{
414414

415415
+ (CGFloat)likeUsersHeightWithTweet:(Tweet *)tweet{
416416
CGFloat likeUsersHeight = 0;
417-
if (tweet.likes.intValue > 0) {
417+
if ([tweet hasLikesOrRewards]) {
418418
likeUsersHeight = 45;
419419
// +30*(ceilf([tweet.like_users count]/kTweet_LikeUsersLineCount)-1);
420420
}

Coding_iOS/Views/Cell/TweetDetailCell.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,15 +285,15 @@ + (CGFloat)contentHeightWithTweet:(Tweet *)tweet{
285285

286286
+ (CGFloat)likeCommentBtn_BottomPadingWithTweet:(Tweet *)tweet{
287287
if (tweet &&
288-
(tweet.likes.intValue > 0)){
288+
([tweet hasLikesOrRewards])){
289289
return 5.0;
290290
}else{
291291
return 0;
292292
}
293293
}
294294
+ (CGFloat)likeUsersHeightWithTweet:(Tweet *)tweet{
295295
CGFloat likeUsersHeight = 0;
296-
if (tweet.likes.intValue > 0) {
296+
if ([tweet hasLikesOrRewards]) {
297297
likeUsersHeight = 35;
298298
// +30*(ceilf([tweet.like_users count]/kTweet_LikeUsersLineCount)-1);
299299
}

0 commit comments

Comments
 (0)