ios - Using autoresizing mask on uicollectionview -


I want to support rotation on UICollectionview, such as when the device is rotated - the collection view that fills the range of the view Will be expanded to

  self.collectionView.autoresizingMask = UIViewAutoresizingFlexibleHyight | UIViewAutoresizingFlexibleWidth;  

But when the device rotates due to the new mounted frame,

is the way to ensure that they have a flexible margin - rotate the device in order Mimic the Time Stock iPhone App -

The cells in the stock app revolve around the center axis of the screen and expand very easily.


Comments