From e1fad548084c3d63022efafce114a370f39d7e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Este=CC=82va=CC=83o?= Date: Wed, 27 Jan 2016 00:06:13 +0000 Subject: [PATCH] Remove deprecated rotation methods. --- Pod/Classes/WPMediaCollectionViewController.m | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/Pod/Classes/WPMediaCollectionViewController.m b/Pod/Classes/WPMediaCollectionViewController.m index 89ea3855..12b855b7 100644 --- a/Pod/Classes/WPMediaCollectionViewController.m +++ b/Pod/Classes/WPMediaCollectionViewController.m @@ -111,23 +111,6 @@ - (void)setupLayout } -- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration -{ - self.firstVisibleCell = [self.collectionView.indexPathsForVisibleItems firstObject]; - [super willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration]; -} - -- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation -{ - [super didRotateFromInterfaceOrientation:fromInterfaceOrientation]; - if (!self.firstVisibleCell){ - return; - } - [self.collectionView scrollToItemAtIndexPath:self.firstVisibleCell - atScrollPosition:UICollectionViewScrollPositionLeft|UICollectionViewScrollPositionTop - animated:NO]; -} - - (void)viewWillLayoutSubviews { [super viewWillLayoutSubviews]; [self setupLayout];