@@ -52,11 +52,6 @@ - (id)initWithFrame:(CGRect)frame {
52
52
[tableView mas_makeConstraints: ^(MASConstraintMaker *make) {
53
53
make.edges .equalTo (self);
54
54
}];
55
- // {
56
- // UIEdgeInsets insets = UIEdgeInsetsMake(0, 0, CGRectGetHeight(self.rdv_tabBarController.tabBar.frame), 0);
57
- // tableView.contentInset = insets;
58
- // tableView.scrollIndicatorInsets = insets;
59
- // }
60
55
tableView;
61
56
});
62
57
@@ -169,39 +164,6 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
169
164
[self .parentVC.navigationController pushViewController: vc animated: YES ];
170
165
}
171
166
172
- // - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
173
- // if (_adlist.count == 0) {
174
- // return 0;
175
- // }
176
- // return _adHeight;
177
- // }
178
-
179
- // - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
180
- // if (_adlist.count == 0) {
181
- // return nil;
182
- // }
183
- //
184
- // if (!_adView) {
185
- //
186
- // __weak CSHotTopicView *wself = self;
187
- // _adView = [CodingBannersView new];
188
- // _adView.tapActionBlock = ^(CodingBanner *tapedBanner) {
189
- //
190
- // CSTopicDetailVC *vc = [[CSTopicDetailVC alloc] init];
191
- // vc.topicID = [tapedBanner.id intValue];
192
- //
193
- // [wself.parentVC.navigationController pushViewController:vc animated:YES];
194
- // };
195
- // _adView.backgroundColor = [UIColor whiteColor];
196
- //
197
- // }
198
- //
199
- // _adView.curBannerList = self.adlist;
200
- //
201
- // return _adView;
202
- // }
203
- //
204
-
205
167
206
168
@end
207
169
@@ -229,8 +191,6 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
229
191
self = [super initWithStyle: style reuseIdentifier: reuseIdentifier];
230
192
if (self) {
231
193
self.selectionStyle = UITableViewCellSelectionStyleNone;
232
- self.backgroundColor = [UIColor clearColor ];
233
-
234
194
self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
235
195
236
196
_nameLabel = [[UILabel alloc ] initWithFrame: CGRectMake (kPaddingLeftWidth , 15 , kScreen_Width - kPaddingLeftWidth - kHotTopicCellPaddingRight , 12 )];
@@ -331,8 +291,6 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
331
291
if (self) {
332
292
// Initialization code
333
293
self.selectionStyle = UITableViewCellSelectionStyleNone;
334
- self.backgroundColor = [UIColor clearColor ];
335
-
336
294
self.textLabel .frame = CGRectMake (kPaddingLeftWidth , 12 , kScreen_Width - 100 , 12 );
337
295
self.textLabel .font = [UIFont systemFontOfSize: 13 ];
338
296
self.textLabel .textColor = kColor222 ;
@@ -362,8 +320,6 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
362
320
if (self) {
363
321
// Initialization code
364
322
self.selectionStyle = UITableViewCellSelectionStyleNone;
365
- self.backgroundColor = [UIColor clearColor ];
366
-
367
323
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc ] init ];
368
324
layout.minimumLineSpacing = 0 ;
369
325
layout.itemSize = CGSizeMake (kScreen_Width , 80 );
0 commit comments