12345678910111213141516171819202122232425262728 |
- //
- #import <UIKit/UIKit.h>
- #define HsCreateCell(Calss) (Calss *)[Calss yt_cellGetTableView:tableView];
- @interface UITableViewCell (yt_createCell)
- /**
- * 根据tableView、重用标识 创建对应的cell 根据 xib 加载
- *
- * @param tableView tableView
- *
- * @return 返回对应的cell
- */
- + (UITableViewCell *)yt_cellWithTableView:(UITableView *)tableView;
- /**
- * 根据tableView、重用标识 创建对应的cell 没有 xib
- *
- * @param tableView tableView
- *
- * @return 返回对应的cell
- */
- + (UITableViewCell *)yt_cellGetTableView:(UITableView *)tableView;
- @end
|