Skip to content
This repository was archived by the owner on Mar 26, 2019. It is now read-only.
This repository was archived by the owner on Mar 26, 2019. It is now read-only.

Stick last section to the bottom #21

Description

@nipun0505

So I used this piece of code, to make the last section stick to the bottom:

if (section == [self.collectionView numberOfSections]-1)
                {
                    CGRect frame = attributes.frame;
                    frame.origin.y = self.collectionView.contentOffset.y + self.collectionView.frame.size.height - 30;
                    attributes.frame = frame;
                }

But, if the last section is pinned to bottom, the collectionview is not able to scroll. If I change frame.origin.y = self.collectionView.contentOffset.y + self.collectionView.frame.size.height - 30;, to frame.origin.y = self.collectionView.contentOffset.y + self.collectionView.frame.size.height + 70;It scrolls little bit downwards until the last section is visible and stops there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions