# LFTableView_Demo **Repository Path**: ruan037/LFTableView_Demo ## Basic Information - **Project Name**: LFTableView_Demo - **Description**: iOS 手动实现类似于苹果官方的循环利用TableCell - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-12-13 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #LFTableView_Demo https://git.oschina.net/stdk-sting/LFTableView_Demo.git iOS 手动实现类似于苹果官方的循环利用TableCell — by DCH 2015自学iOS开发期间 // // UIWaterFallView.m // 瀑布流控制器 // // Created by 丁诚昊(831) on 15-5-25. // Copyright (c) 2015年 丁诚昊(831). All rights reserved. // #import "UIWaterFallView.h" #import //瀑布流默认的宽度是均分的 不需要事先指定 #define DefaultCubeValuesHeight kscreemHeight*0.3f //如果没有实现代理 就事先指定块高 #define NUMBEROFCOLUMES 3 //屏幕宽高比 #define scale (kscreemWidth/kscreemHeight) @interface UIWaterFallView () @property (nonatomic,strong) NSMutableArray* CubesFrame; //CGRect @property (nonatomic,strong) NSMutableDictionary* showingCubesInRect; //WaterFallCube @property (nonatomic,strong) NSMutableSet* reusableCachePool;//anyobject //animaton pointer /**CATransition* animation;*/ @property (nonatomic, strong) CATransition* animation; /**是否正在执行全局动画*/ @property (assign,atomic) BOOL isAnimating; ///..... /** ANIMATION Caches*/ @property (strong) NSArray* cachesOfAnimationNameString; @property (strong) NSArray* cachesOfAnimationTypeString; @end