UITableView/UICollectionView 单元格的子类:HTKDynamicResizingCell
jopen
10年前
HTKDynamicResizingCell 是 UITableView/UICollectionView 单元格的子类,允许自动计算他们的大小,准确的进行 AutoLayout。支持 iOS 7+;类似于 iOS 8 自动缩放单元格的功能,包括完整的运行示例和目录。
Adding to your project:
Cocoapods
CocoaPods is the recommended way to add HTKScrollingNavigationController to your project.
- Add a pod entry for HTKScrollingNavigationController to your Podfile
pod 'HTKDynamicResizingCell', '~> 0.0.1'
- Install the pod(s) by running
pod install
. - Subclass
HTKDynamicResizingTableViewCell
orHTKDynamicResizingCollectionViewCell
where you wish to use it. - Make sure Auto-layout is setup correctly. See comments in classes for help.