Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit 3f0e107

Browse files
author
Sérgio Estêvão
committed
Merge pull request #93 from wordpress-mobile/issue/remove_deprecated_methods
Remove deprecated rotation methods.
2 parents 50f2e62 + e1fad54 commit 3f0e107

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

Pod/Classes/WPMediaCollectionViewController.m

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -111,23 +111,6 @@ - (void)setupLayout
111111

112112
}
113113

114-
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
115-
{
116-
self.firstVisibleCell = [self.collectionView.indexPathsForVisibleItems firstObject];
117-
[super willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
118-
}
119-
120-
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
121-
{
122-
[super didRotateFromInterfaceOrientation:fromInterfaceOrientation];
123-
if (!self.firstVisibleCell){
124-
return;
125-
}
126-
[self.collectionView scrollToItemAtIndexPath:self.firstVisibleCell
127-
atScrollPosition:UICollectionViewScrollPositionLeft|UICollectionViewScrollPositionTop
128-
animated:NO];
129-
}
130-
131114
- (void)viewWillLayoutSubviews {
132115
[super viewWillLayoutSubviews];
133116
[self setupLayout];

0 commit comments

Comments
 (0)