Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
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
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
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
Supports
Markdown
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