@@ -67,12 +67,6 @@ @interface TOCropViewController () <UIActionSheetDelegate, UIViewControllerTrans
67
67
/* Flag to perform initial setup on the first run */
68
68
@property (nonatomic , assign ) BOOL firstTime;
69
69
70
- /* On iOS 7, the popover view controller that appears when tapping 'Done' */
71
- #pragma clang diagnostic push
72
- #pragma clang diagnostic ignored "-Wdeprecated-declarations"
73
- @property (nonatomic , strong ) UIPopoverController *activityPopoverController;
74
- #pragma clang diagnostic pop
75
-
76
70
@end
77
71
78
72
@implementation TOCropViewController
@@ -456,11 +450,7 @@ - (void)viewDidLayoutSubviews
456
450
457
451
#pragma mark - Rotation Handling -
458
452
459
- // TODO: Deprecate iOS 7 properly at the right time
460
- #pragma clang diagnostic push
461
- #pragma clang diagnostic ignored "-Wdeprecated-declarations"
462
- #pragma clang diagnostic ignored "-Wdeprecated-implementations"
463
- - (void )willRotateToInterfaceOrientation : (UIInterfaceOrientation)toInterfaceOrientation duration : (NSTimeInterval )duration
453
+ - (void )_willRotateToInterfaceOrientation : (UIInterfaceOrientation)toInterfaceOrientation duration : (NSTimeInterval )duration
464
454
{
465
455
self.toolbarSnapshotView = [self .toolbar snapshotViewAfterScreenUpdates: NO ];
466
456
self.toolbarSnapshotView .frame = self.toolbar .frame ;
@@ -492,7 +482,7 @@ - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrie
492
482
self.cropView .internalLayoutDisabled = YES ;
493
483
}
494
484
495
- - (void )willAnimateRotationToInterfaceOrientation : (UIInterfaceOrientation)toInterfaceOrientation duration : (NSTimeInterval )duration
485
+ - (void )_willAnimateRotationToInterfaceOrientation : (UIInterfaceOrientation)toInterfaceOrientation duration : (NSTimeInterval )duration
496
486
{
497
487
// Remove all animations in the toolbar
498
488
self.toolbar .frame = [self frameForToolbarWithVerticalLayout: !UIInterfaceOrientationIsLandscape (toInterfaceOrientation)];
@@ -517,7 +507,7 @@ - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInte
517
507
self.toolbar .alpha = 1 .0f ;
518
508
}
519
509
520
- - (void )didRotateFromInterfaceOrientation : (UIInterfaceOrientation)fromInterfaceOrientation
510
+ - (void )_didRotateFromInterfaceOrientation : (UIInterfaceOrientation)fromInterfaceOrientation
521
511
{
522
512
[self .toolbarSnapshotView removeFromSuperview ];
523
513
self.toolbarSnapshotView = nil ;
@@ -539,14 +529,13 @@ - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIVi
539
529
orientation = UIInterfaceOrientationLandscapeLeft;
540
530
}
541
531
542
- [self willRotateToInterfaceOrientation : orientation duration: coordinator.transitionDuration];
532
+ [self _willRotateToInterfaceOrientation : orientation duration: coordinator.transitionDuration];
543
533
[coordinator animateAlongsideTransition: ^(id <UIViewControllerTransitionCoordinatorContext> context) {
544
- [self willAnimateRotationToInterfaceOrientation : orientation duration: coordinator.transitionDuration];
534
+ [self _willAnimateRotationToInterfaceOrientation : orientation duration: coordinator.transitionDuration];
545
535
} completion: ^(id <UIViewControllerTransitionCoordinatorContext> context) {
546
- [self didRotateFromInterfaceOrientation : orientation];
536
+ [self _didRotateFromInterfaceOrientation : orientation];
547
537
}];
548
538
}
549
- #pragma clang diagnostic pop
550
539
551
540
#pragma mark - Reset -
552
541
- (void )resetCropViewLayout
0 commit comments