Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-iOS
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
269
Issues
269
List
Boards
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLC-iOS
Commits
a3ed2d32
Commit
a3ed2d32
authored
Dec 22, 2017
by
Carola Nitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some <= iOS 8 code
parent
f82802c0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
29 deletions
+5
-29
Apple-TV/TVPrefixHeader.pch
Apple-TV/TVPrefixHeader.pch
+0
-2
Sources/VLC for iOS-Prefix.pch
Sources/VLC for iOS-Prefix.pch
+0
-6
Sources/VLCLibraryViewController.m
Sources/VLCLibraryViewController.m
+5
-10
Sources/VLCMovieViewController.m
Sources/VLCMovieViewController.m
+0
-11
No files found.
Apple-TV/TVPrefixHeader.pch
View file @
a3ed2d32
...
...
@@ -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__)
...
...
Sources/VLC for iOS-Prefix.pch
View file @
a3ed2d32
...
...
@@ -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
...
...
Sources/VLCLibraryViewController.m
View file @
a3ed2d32
...
...
@@ -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
];
}];
...
...
Sources/VLCMovieViewController.m
View file @
a3ed2d32
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment