UITableView/UICollectionView 單元格的子類:HTKDynamicResizingCell
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.
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!