Remove UICollectionView top padding which added automatically

Hello few days ago worked on UICollectionView that time faced problem of automatically adding top padding and do few some R&D and get the solution here give you some solution to resolve that problem.

Here attached screen shot which shows the problem.

iOS Simulator Screen Shot 09-Jul-2015 6.25.42 pm
Here Code which use for the creating the UICollectionView Delegate and Datasource code.

Now We discuss about the solution Only adding single line of code which solve the this problem which is following. :-P

After apply this code below is correct UICollectionView Which solve my problem.

iOS Simulator Screen Shot 09-Jul-2015 6.25.42 pm 2

May this help lot.

Leave a Reply

Your email address will not be published. Required fields are marked *



*