QMUICellHeightIndexPathCache
@interface QMUICellHeightIndexPathCache : NSObject
@property(nonatomic, assign) BOOL automaticallyInvalidateEnabled;// TODO: 这个要放在 tableView 那边
- (BOOL)existsHeightAtIndexPath:(NSIndexPath *)indexPath;
- (void)cacheHeight:(CGFloat)height byIndexPath:(NSIndexPath *)indexPath;
- (CGFloat)heightForIndexPath:(NSIndexPath *)indexPath;
- (void)invalidateHeightAtIndexPath:(NSIndexPath *)indexPath;
- (void)invalidateAllHeightCache;
@end
Undocumented
-
Undocumented
Declaration
Objective-C
@property(nonatomic, assign) BOOL automaticallyInvalidateEnabled
Swift
var automaticallyInvalidateEnabled: Bool { get set }
-
Undocumented
Declaration
Objective-C
- (BOOL)existsHeightAtIndexPath:(NSIndexPath *)indexPath;
Swift
func existsHeight(at indexPath: IndexPath!) -> Bool
-
Undocumented
Declaration
Objective-C
- (void)cacheHeight:(CGFloat)height byIndexPath:(NSIndexPath *)indexPath;
Swift
func cacheHeight(_ height: CGFloat, by indexPath: IndexPath!)
-
Undocumented
Declaration
Objective-C
- (CGFloat)heightForIndexPath:(NSIndexPath *)indexPath;
Swift
func height(for indexPath: IndexPath!) -> CGFloat
-
Undocumented
Declaration
Objective-C
- (void)invalidateHeightAtIndexPath:(NSIndexPath *)indexPath;
Swift
func invalidateHeight(at indexPath: IndexPath!)
-
Undocumented
Declaration
Objective-C
- (void)invalidateAllHeightCache;
Swift
func invalidateAllHeightCache()