UITableViewCell+cornerRadius.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // UITableViewCell+cornerRadius.h
  3. // SmartLightForBigFish
  4. //
  5. // Created by coderYK on 2017/11/16.
  6. // Copyright © 2017年 RD. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface UITableViewCell (cornerRadius)
  10. /**
  11. section的圆角效果(原理:重绘section中首尾的cell的背景View)
  12. @param radius 圆角半径
  13. */
  14. - (void)rds_setCornerRadius:(CGFloat)radius atTableView:(UITableView *)tableView forRowAtIndexPath:(NSIndexPath *)indexPath;
  15. /**
  16. section底部圆角效果(原理:重绘section中尾的cell的背景View)
  17. @param radius 圆角半径
  18. */
  19. - (void)rds_setBottomCornerRadius:(CGFloat)radius atTableView:(UITableView *)tableView forRowAtIndexPath:(NSIndexPath *)indexPath;
  20. /**
  21. 为分组的第一个及最后一个cell添加分割线(未实现)
  22. @param separatorColor 分割线颜色 (默认为tableView.separatorColor)
  23. */
  24. - (void)rds_addSeparatorForCellAtFirstOrBottomColor:(UIColor *)separatorColor atTableView:(UITableView *)tableView forRowAtIndexPath:(NSIndexPath *)indexPath;
  25. @end