Commit a3ed2d32 authored by Carola Nitz's avatar Carola Nitz

Remove some <= iOS 8 code

parent f82802c0
......@@ -27,8 +27,6 @@
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[UIDevice currentDevice] systemVersion].floatValue >= [v floatValue])
#define SYSTEM_RUNS_IOS8_OR_LATER SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")
#ifndef NDEBUG
#define APLog(format, ...) NSLog(format, ## __VA_ARGS__)
......
......@@ -12,10 +12,6 @@
#import <Availability.h>
#ifndef __IPHONE_9_0
#error "This project uses features only available in iOS SDK 9.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
......@@ -33,8 +29,6 @@
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[UIDevice currentDevice] systemVersion].floatValue >= [v floatValue])
#define SYSTEM_RUNS_IOS8_OR_LATER SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")
#ifndef NDEBUG
#define APLog(format, ...) NSLog(format, ## __VA_ARGS__)
#else
......
......@@ -411,13 +411,8 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
BOOL isPortrait = YES;
if (SYSTEM_RUNS_IOS8_OR_LATER) {
if (self.traitCollection.verticalSizeClass == UIUserInterfaceSizeClassCompact)
isPortrait = NO;
} else {
if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation]))
isPortrait = NO;
}
if (self.traitCollection.verticalSizeClass == UIUserInterfaceSizeClassCompact)
isPortrait = NO;
[self setUsingTableViewToShowData:isPortrait];
[self _displayEmptyLibraryViewIfNeeded];
......@@ -1305,9 +1300,9 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
if (!controller) {
[[UIApplication sharedApplication] endIgnoringInteractionEvents];
} else {
if (SYSTEM_RUNS_IOS8_OR_LATER) {
controller.popoverPresentationController.sourceView = self.navigationController.toolbar;
}
controller.popoverPresentationController.sourceView = self.navigationController.toolbar;
[self.navigationController presentViewController:controller animated:YES completion:^{
[[UIApplication sharedApplication] endIgnoringInteractionEvents];
}];
......
......@@ -1578,17 +1578,6 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
|| toInterfaceOrientation != UIInterfaceOrientationPortraitUpsideDown;
}
// < iOS 8
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
[super willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
if (self.artworkImageView.image)
self.trackNameLabel.hidden = UIInterfaceOrientationIsLandscape(toInterfaceOrientation);
if (!_equalizerView.hidden)
_equalizerView.hidden = YES;
}
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
{
if (_vpc.isPlaying && _controlsHidden)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment