Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
b19870da
Commit
b19870da
authored
Sep 25, 2013
by
Pierre SAGASPE
Committed by
Felix Paul Kühne
Oct 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated deprecated methods iOS 6.1
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
99eb0828
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
21 additions
and
21 deletions
+21
-21
AspenProject/VLCAboutViewController.m
AspenProject/VLCAboutViewController.m
+2
-1
AspenProject/VLCDownloadViewController.m
AspenProject/VLCDownloadViewController.m
+4
-1
AspenProject/VLCDropboxTableViewController.m
AspenProject/VLCDropboxTableViewController.m
+2
-1
AspenProject/VLCExternalDisplayController.m
AspenProject/VLCExternalDisplayController.m
+0
-5
AspenProject/VLCLocalServerFolderListViewController.m
AspenProject/VLCLocalServerFolderListViewController.m
+2
-1
AspenProject/VLCLocalServerListViewController.m
AspenProject/VLCLocalServerListViewController.m
+2
-1
AspenProject/VLCMenuTableViewController.m
AspenProject/VLCMenuTableViewController.m
+3
-1
AspenProject/VLCMovieViewController.m
AspenProject/VLCMovieViewController.m
+3
-1
AspenProject/VLCOpenNetworkStreamViewController.m
AspenProject/VLCOpenNetworkStreamViewController.m
+3
-1
AspenProject/VLCPlaylistViewController.m
AspenProject/VLCPlaylistViewController.m
+0
-8
No files found.
AspenProject/VLCAboutViewController.m
View file @
b19870da
...
...
@@ -39,8 +39,9 @@
self
.
webView
.
delegate
=
self
;
}
-
(
BOOL
)
shouldAutorotate
ToInterfaceOrientation
:(
UIInterfaceOrientation
)
toInterfaceOrientation
-
(
BOOL
)
shouldAutorotate
{
UIInterfaceOrientation
toInterfaceOrientation
=
[[
UIApplication
sharedApplication
]
statusBarOrientation
];
if
(
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPhone
&&
toInterfaceOrientation
==
UIInterfaceOrientationPortraitUpsideDown
)
return
NO
;
return
YES
;
...
...
AspenProject/VLCDownloadViewController.m
View file @
b19870da
...
...
@@ -51,6 +51,7 @@
self
.
title
=
NSLocalizedString
(
@"DOWNLOAD_FROM_HTTP"
,
@""
);
self
.
whatToDownloadHelpLabel
.
text
=
[
NSString
stringWithFormat
:
NSLocalizedString
(
@"DOWNLOAD_FROM_HTTP_HELP"
,
@""
),
[[
UIDevice
currentDevice
]
model
]];
self
.
urlField
.
delegate
=
self
;
self
.
urlField
.
keyboardType
=
UIKeyboardTypeURL
;
[
super
viewDidLoad
];
}
...
...
@@ -81,8 +82,10 @@
}
#pragma mark - UI interaction
-
(
BOOL
)
shouldAutorotateToInterfaceOrientation
:(
UIInterfaceOrientation
)
toInterfaceOrientation
-
(
BOOL
)
shouldAutorotate
{
UIInterfaceOrientation
toInterfaceOrientation
=
[[
UIApplication
sharedApplication
]
statusBarOrientation
];
if
(
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPhone
&&
toInterfaceOrientation
==
UIInterfaceOrientationPortraitUpsideDown
)
return
NO
;
return
YES
;
...
...
AspenProject/VLCDropboxTableViewController.m
View file @
b19870da
...
...
@@ -123,8 +123,9 @@
#pragma mark - interface interaction
-
(
BOOL
)
shouldAutorotate
ToInterfaceOrientation
:(
UIInterfaceOrientation
)
toInterfaceOrientation
-
(
BOOL
)
shouldAutorotate
{
UIInterfaceOrientation
toInterfaceOrientation
=
[[
UIApplication
sharedApplication
]
statusBarOrientation
];
if
(
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPhone
&&
toInterfaceOrientation
==
UIInterfaceOrientationPortraitUpsideDown
)
return
NO
;
return
YES
;
...
...
AspenProject/VLCExternalDisplayController.m
View file @
b19870da
...
...
@@ -16,11 +16,6 @@
@implementation
VLCExternalDisplayController
-
(
BOOL
)
shouldAutorotateToInterfaceOrientation
:(
UIInterfaceOrientation
)
toInterfaceOrientation
{
return
NO
;
}
-
(
BOOL
)
shouldAutorotate
{
return
NO
;
...
...
AspenProject/VLCLocalServerFolderListViewController.m
View file @
b19870da
...
...
@@ -122,8 +122,9 @@
self
.
title
=
_listTitle
;
}
-
(
BOOL
)
shouldAutorotate
ToInterfaceOrientation
:(
UIInterfaceOrientation
)
toInterfaceOrientation
-
(
BOOL
)
shouldAutorotate
{
UIInterfaceOrientation
toInterfaceOrientation
=
[[
UIApplication
sharedApplication
]
statusBarOrientation
];
if
(
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPhone
&&
toInterfaceOrientation
==
UIInterfaceOrientationPortraitUpsideDown
)
return
NO
;
return
YES
;
...
...
AspenProject/VLCLocalServerListViewController.m
View file @
b19870da
...
...
@@ -124,8 +124,9 @@
[[(
VLCAppDelegate
*
)[
UIApplication
sharedApplication
].
delegate
revealController
]
toggleSidebar
:
!
[(
VLCAppDelegate
*
)[
UIApplication
sharedApplication
].
delegate
revealController
].
sidebarShowing
duration
:
kGHRevealSidebarDefaultAnimationDuration
];
}
-
(
BOOL
)
shouldAutorotate
ToInterfaceOrientation
:(
UIInterfaceOrientation
)
toInterfaceOrientation
-
(
BOOL
)
shouldAutorotate
{
UIInterfaceOrientation
toInterfaceOrientation
=
[[
UIApplication
sharedApplication
]
statusBarOrientation
];
if
(
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPhone
&&
toInterfaceOrientation
==
UIInterfaceOrientationPortraitUpsideDown
)
return
NO
;
return
YES
;
...
...
AspenProject/VLCMenuTableViewController.m
View file @
b19870da
...
...
@@ -130,7 +130,9 @@
}
}
-
(
BOOL
)
shouldAutorotateToInterfaceOrientation
:(
UIInterfaceOrientation
)
orientation
{
-
(
BOOL
)
shouldAutorotate
{
UIInterfaceOrientation
orientation
=
[[
UIApplication
sharedApplication
]
statusBarOrientation
];
return
(
orientation
==
UIInterfaceOrientationPortraitUpsideDown
)
?
(
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPad
)
:
YES
;
...
...
AspenProject/VLCMovieViewController.m
View file @
b19870da
...
...
@@ -1048,7 +1048,9 @@
#pragma mark - autorotation
-
(
BOOL
)
shouldAutorotateToInterfaceOrientation
:(
UIInterfaceOrientation
)
toInterfaceOrientation
{
-
(
BOOL
)
shouldAutorotate
{
UIInterfaceOrientation
toInterfaceOrientation
=
[[
UIApplication
sharedApplication
]
statusBarOrientation
];
return
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPad
||
toInterfaceOrientation
!=
UIInterfaceOrientationPortraitUpsideDown
;
}
...
...
AspenProject/VLCOpenNetworkStreamViewController.m
View file @
b19870da
...
...
@@ -41,6 +41,7 @@
self
.
navigationItem
.
leftBarButtonItem
=
[
UIBarButtonItem
themedRevealMenuButtonWithTarget
:
self
andSelector
:
@selector
(
goBack
:
)];
[
self
.
whatToOpenHelpLabel
setText
:
NSLocalizedString
(
@"OPEN_NETWORK_HELP"
,
@""
)];
self
.
urlField
.
delegate
=
self
;
self
.
urlField
.
keyboardType
=
UIKeyboardTypeURL
;
}
-
(
void
)
viewWillAppear
:(
BOOL
)
animated
...
...
@@ -83,8 +84,9 @@
}
#pragma mark - UI interaction
-
(
BOOL
)
shouldAutorotate
ToInterfaceOrientation
:(
UIInterfaceOrientation
)
toInterfaceOrientation
-
(
BOOL
)
shouldAutorotate
{
UIInterfaceOrientation
toInterfaceOrientation
=
[[
UIApplication
sharedApplication
]
statusBarOrientation
];
if
(
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPhone
&&
toInterfaceOrientation
==
UIInterfaceOrientationPortraitUpsideDown
)
return
NO
;
return
YES
;
...
...
AspenProject/VLCPlaylistViewController.m
View file @
b19870da
...
...
@@ -495,14 +495,6 @@
}
#pragma mark - autorotation
/* deprecated in iOS 6 */
-
(
BOOL
)
shouldAutorotateToInterfaceOrientation
:(
UIInterfaceOrientation
)
toInterfaceOrientation
{
if
(
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPad
)
return
YES
;
return
(
_foundMedia
.
count
>
0
)
||
toInterfaceOrientation
==
UIInterfaceOrientationPortrait
;
}
// RootController is responsible for supporting interface orientation(iOS6.0+), i.e. navigation controller
// so this will not work as intended without "voodoo magic"(UINavigationController category, subclassing, etc)
...
...
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