UITableView/UICollectionView 單元格的子類:HTKDynamicResizingCell

jopen 10年前發布 | 16K 次閱讀 iOS開發 移動開發 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.

  1. Add a pod entry for HTKScrollingNavigationController to your Podfile pod 'HTKDynamicResizingCell', '~> 0.0.1'
  2. Install the pod(s) by running pod install.
  3. Subclass HTKDynamicResizingTableViewCell or HTKDynamicResizingCollectionViewCell where you wish to use it.
  4. Make sure Auto-layout is setup correctly. See comments in classes for help.

UITableView/UICollectionView 單元格的子類:HTKDynamicResizingCell

項目主頁:http://www.baiduhome.net/lib/view/home/1416464788414

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