Commit a4287355f1ae6c10d526e9ef8f41606c88ffc452
1 parent
4f738ae2
0.7.1
Showing
2 changed files
with
5 additions
and
5 deletions
CNLiveVideoClassifyKit.podspec
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | 8 | ||
| 9 | Pod::Spec.new do |s| | 9 | Pod::Spec.new do |s| |
| 10 | s.name = 'CNLiveVideoClassifyKit' | 10 | s.name = 'CNLiveVideoClassifyKit' |
| 11 | - s.version = '0.7.0' | 11 | + s.version = '0.7.1' |
| 12 | s.summary = '视讯头部一二级菜单组件' | 12 | s.summary = '视讯头部一二级菜单组件' |
| 13 | 13 | ||
| 14 | # This description is used to generate tags and improve search results. | 14 | # This description is used to generate tags and improve search results. |
CNLiveVideoClassifyKit/Classes/SearchView/ViewController/CNWitnessSearchDetailController.m
| @@ -17,8 +17,8 @@ | @@ -17,8 +17,8 @@ | ||
| 17 | #define WjjAttentionUserStatusToJSNotification @"WjjAttentionUserStatusToJSNotification" | 17 | #define WjjAttentionUserStatusToJSNotification @"WjjAttentionUserStatusToJSNotification" |
| 18 | #endif | 18 | #endif |
| 19 | //评论 | 19 | //评论 |
| 20 | -#ifndef WjjWitnessCommentStatusNotification | ||
| 21 | -#define WjjWitnessCommentStatusNotification @"WjjWitnessCommentStatusNotification" | 20 | +#ifndef WjjWitnessCommentNumberUpdateNotification |
| 21 | +#define WjjWitnessCommentNumberUpdateNotification @"WjjWitnessCommentNumberUpdateNotification" | ||
| 22 | #endif | 22 | #endif |
| 23 | //分享 | 23 | //分享 |
| 24 | #ifndef WjjWitnessShareNotification | 24 | #ifndef WjjWitnessShareNotification |
| @@ -132,7 +132,7 @@ static NSString *const CNWitnessSearchPersonCellID = @"CNWitnessSearchPersonCell | @@ -132,7 +132,7 @@ static NSString *const CNWitnessSearchPersonCellID = @"CNWitnessSearchPersonCell | ||
| 132 | //关注 | 132 | //关注 |
| 133 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(videoFocuseChange:) name:@"WjjAttentionUserStatusToJSNotification" object:nil]; | 133 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(videoFocuseChange:) name:@"WjjAttentionUserStatusToJSNotification" object:nil]; |
| 134 | //评论 | 134 | //评论 |
| 135 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(videoCommentsChange:) name:WjjWitnessCommentStatusNotification object:nil]; | 135 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(videoCommentsChange:) name:WjjWitnessCommentNumberUpdateNotification object:nil]; |
| 136 | //分享 | 136 | //分享 |
| 137 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(videoShareChange:) name:WjjWitnessShareNotification object:nil]; | 137 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(videoShareChange:) name:WjjWitnessShareNotification object:nil]; |
| 138 | //收藏 | 138 | //收藏 |
| @@ -196,7 +196,7 @@ static NSString *const CNWitnessSearchPersonCellID = @"CNWitnessSearchPersonCell | @@ -196,7 +196,7 @@ static NSString *const CNWitnessSearchPersonCellID = @"CNWitnessSearchPersonCell | ||
| 196 | if ([self.videoIDArray containsObject:pid]) { | 196 | if ([self.videoIDArray containsObject:pid]) { |
| 197 | NSInteger index = [self.videoIDArray indexOfObject:pid]; | 197 | NSInteger index = [self.videoIDArray indexOfObject:pid]; |
| 198 | CNWitnessSearchDetailModel *model = self.dataSource[index]; | 198 | CNWitnessSearchDetailModel *model = self.dataSource[index]; |
| 199 | - model.tool.commentsNum += 1; | 199 | + model.tool.commentsNum = [noti.userInfo stringForKey:@"number"].integerValue; |
| 200 | } | 200 | } |
| 201 | } | 201 | } |
| 202 | - (void)videoFocuseChange:(NSNotification *)noti{ | 202 | - (void)videoFocuseChange:(NSNotification *)noti{ |