Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adjust UICollectionView's Width

I'm using ViewDeck to make a slide menu, and would like to shorten the width of my CollectionView, which functions as a menu. I can't seem to find any delegate methods to do so though.

I'm using Storyboards, and this is my issue:

enter image description here

Perhaps some sort of setup using? :

  • (UIEdgeInsets)collectionView: (UICollectionView )collectionView layout:(UICollectionViewLayout)collectionViewLayout insetForSectionAtIndex:(NSInteger)section
like image 909
Josh Avatar asked Apr 10 '26 17:04

Josh


1 Answers

There's an IISideController in ViewDeck. It knows about the viewdeck and is made specifically for this scenario. It will adjust the size of the contained viewcontroller's view to the size of the ledge of the viewdeck (or to a user specified size).

like image 173
Inferis Avatar answered Apr 13 '26 08:04

Inferis