UICollectionView 动态高度适配框架
Dynamic Height For UICollectionView
-
Simple solution for Dynamically adjust view as a blocks.
用于动态地将视图调整为块的简单解决方案。
Dynamically adjust height of collection view.
动态调整uicollectionview的高度
No more White spaces
没有更多的空格
Difference between Normal CollectionView Layout and Custom CollectionView Layout
正常CollectionView布局和自定义CollectionView布局之间的区别
-
While using Dynamic height onlyWhile using Dynamic height with Custom Layout Made by MeHow to get Custom CollectionView Layout for your UICollectionView
-
Add Following Files to your project
-
customLayout.h
customLayout.m
Import customLayout in your controller where to use
-
And use
<customLayoutDelegate>to your controller.
Write Simple Code in your viewDidLoad Method
-
For getting height of Label I have written a method.
-(float)calculateHeightForLbl:(NSString*)text width:(float)width;