UITableViewCell+yt_createCell.h 589 B

12345678910111213141516171819202122232425262728
  1. //
  2. #import <UIKit/UIKit.h>
  3. #define HsCreateCell(Calss) (Calss *)[Calss yt_cellGetTableView:tableView];
  4. @interface UITableViewCell (yt_createCell)
  5. /**
  6. * 根据tableView、重用标识 创建对应的cell 根据 xib 加载
  7. *
  8. * @param tableView tableView
  9. *
  10. * @return 返回对应的cell
  11. */
  12. + (UITableViewCell *)yt_cellWithTableView:(UITableView *)tableView;
  13. /**
  14. * 根据tableView、重用标识 创建对应的cell 没有 xib
  15. *
  16. * @param tableView tableView
  17. *
  18. * @return 返回对应的cell
  19. */
  20. + (UITableViewCell *)yt_cellGetTableView:(UITableView *)tableView;
  21. @end