UITableView+HYBCacheHeight.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // UITableView+HYBCacheHeight.h
  3. // CellAutoHeightDemo
  4. //
  5. // Created by huangyibiao on 16/1/22.
  6. // Copyright © 2016年 huangyibiao. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. /**
  10. * 基于Masonry自动布局实现的自动计算cell的行高扩展
  11. *
  12. * @author huangyibiao
  13. * @email huangyibiao520@163.com
  14. * @github https://github.com/CoderJackyHuang
  15. * @blog http://www.henishuo.com/masonry-cell-height-auto-calculate/
  16. *
  17. * @note Make friends with me:
  18. * QQ:(632840804)
  19. * Please tell me your real name when you send message to me.3Q.
  20. */
  21. @interface UITableView (HYBCacheHeight)
  22. /**
  23. * @author 黄仪标, 16-01-22 20:01:09
  24. *
  25. * 用于缓存cell的行高
  26. */
  27. @property (nonatomic, strong, readonly) NSMutableDictionary *hyb_cacheCellHeightDict;
  28. /**
  29. * @author 黄仪标, 16-03-01 21:03:19
  30. *
  31. * 用于获取或者添加计算行高的cell,因为理论上只有一个cell用来计算行高,以降低消耗
  32. */
  33. @property (nonatomic, strong, readonly) NSMutableDictionary *hyb_reuseCells;
  34. @end