2
0

Updates for latest Xcode.

This commit is contained in:
Maarten Billemont
2017-03-11 11:20:15 -05:00
parent 77bee803b8
commit 58a6f17641
14 changed files with 24 additions and 38 deletions

View File

@@ -122,11 +122,10 @@ typedef NS_OPTIONS( NSUInteger, MPPasswordsTips ) {
((MPMessageViewController *)segue.destinationViewController).message = sender;
}
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator {
[self.passwordCollectionView.collectionViewLayout invalidateLayout];
[super willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
}
#pragma mark - UICollectionViewDelegateFlowLayout

View File

@@ -118,11 +118,10 @@ typedef NS_ENUM( NSUInteger, MPActiveUserState ) {
[super viewWillLayoutSubviews];
}
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
[super willAnimateRotationToInterfaceOrientation:toInterfaceOrientation duration:duration];
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator {
[self.avatarCollectionView.collectionViewLayout invalidateLayout];
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
}
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {