Commit c3cdea154b7fea115bc8941bd3b6b80ff91c3589

Authored by zhangxiaowen
1 parent ed13ea80

no message

CNLiveScioLive/Pages/My/我的收藏/Controller/CNLiveMyCollectionViewController.m
... ... @@ -66,7 +66,10 @@ static NSString *myAnnouncementsTableViewCell = @"CNMyAnnouncementsTableViewCell
66 66 */
67 67 #pragma mark - UITableViewDelegate
68 68 - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
69   - return 86;
  69 + TableData *model = self.data[indexPath.row];
  70 + CNMyAnnouncementsModel *announcementsModel = [CNMyAnnouncementsModel mj_objectWithKeyValues:[model ToDictionary]];
  71 + return announcementsModel.titleHeight+40;
  72 +
70 73 }
71 74  
72 75 #pragma mark - UITableViewDataSource
... ... @@ -87,16 +90,14 @@ static NSString *myAnnouncementsTableViewCell = @"CNMyAnnouncementsTableViewCell
87 90 }
88 91 cell.selectionStyle = UITableViewCellSelectionStyleNone;
89 92 TableData *model = self.data[indexPath.row];
90   - CNMyAnnouncementsModel *announcementsModel =[CNMyAnnouncementsModel mj_objectWithKeyValues:[model ToDictionary]];
  93 + CNMyAnnouncementsModel *announcementsModel = [CNMyAnnouncementsModel mj_objectWithKeyValues:[model ToDictionary]];
91 94 cell.model = announcementsModel;
92 95 return cell;
93 96  
94   -
95 97 }
96 98  
97 99 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
98 100 TableData *model = self.data[indexPath.row];
99   -// CNHomeModel *homeModel = [CNHomeModel mj_objectWithKeyValues:[model ToDictionary]];
100 101 NSDictionary *_dic = [model ToDictionary];
101 102 if ([@"program" isEqualToString:_dic[@"type"]]) {
102 103 //视频
... ...