改变颜色

[_hotProductsTableView setSeparatorColor : kSeparatorColor];

 

 

-(void)viewDidLayoutSubviews

 

{

    [super viewDidLayoutSubviews];

    if ([_hotProductsTableView respondsToSelector:@selector(setSeparatorInset:)]) {

        [_hotProductsTableView setSeparatorInset:UIEdgeInsetsMake(0,-5,0,10)];

    }

    

    if ([_hotProductsTableView respondsToSelector:@selector(setLayoutMargins:)]) {

        [_hotProductsTableView setLayoutMargins:UIEdgeInsetsMake(0,-5,0,10)];

    }

}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-08-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
  • 2022-01-19
  • 2021-09-16
相关资源
相似解决方案