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
6aea606c
Commit
6aea606c
authored
Jun 16, 2013
by
Romain Goyet
Committed by
Felix Paul Kühne
Jun 17, 2013
Browse files
Remove duplicated code
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
d8330733
Changes
1
Hide whitespace changes
Inline
Side-by-side
AspenProject/VLCMenuViewController.m
View file @
6aea606c
...
...
@@ -19,6 +19,7 @@
#import "Reachability.h"
#import "VLCHTTPFileDownloader.h"
#import "IASKAppSettingsViewController.h"
#import "UINavigationController+Theme.h"
#import "VLCOpenNetworkStreamViewController.h"
#import "VLCHTTPDownloadViewController.h"
...
...
@@ -125,8 +126,7 @@
if
(
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPad
)
{
UINavigationController
*
navController
=
[[
UINavigationController
alloc
]
initWithRootViewController
:
aboutController
];
navController
.
navigationBar
.
barStyle
=
UIBarStyleBlack
;
[
navController
.
navigationBar
setBackgroundImage
:[
UIImage
imageNamed
:
@"navBarBackground"
]
forBarMetrics
:
UIBarMetricsDefault
];
[
navController
loadTheme
];
[
self
presentModalViewController
:
navController
animated
:
YES
];
}
else
{
[
self
.
navigationController
pushViewController
:
aboutController
animated
:
YES
];
...
...
@@ -164,11 +164,7 @@
self
.
settingsController
.
viewController
=
self
.
settingsViewController
;
UINavigationController
*
navController
=
[[
UINavigationController
alloc
]
initWithRootViewController
:
self
.
settingsViewController
];
navController
.
navigationBarHidden
=
NO
;
navController
.
navigationBar
.
barStyle
=
UIBarStyleBlack
;
[
navController
.
navigationBar
setBackgroundImage
:[
UIImage
imageNamed
:
@"navBarBackground"
]
forBarMetrics
:
UIBarMetricsDefault
];
if
(
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPhone
)
[
navController
.
navigationBar
setBackgroundImage
:[
UIImage
imageNamed
:
@"navBarBackgroundPhoneLandscape"
]
forBarMetrics
:
UIBarMetricsLandscapePhone
];
[
navController
loadTheme
];
[
self
presentModalViewController
:
navController
animated
:
YES
];
UIBarButtonItem
*
doneButton
=
self
.
settingsViewController
.
navigationItem
.
rightBarButtonItem
;
...
...
@@ -218,11 +214,7 @@
appDelegate
.
dropboxTableViewController
.
modalPresentationStyle
=
UIModalPresentationFormSheet
;
UINavigationController
*
navController
=
[[
UINavigationController
alloc
]
initWithRootViewController
:
appDelegate
.
dropboxTableViewController
];
navController
.
navigationBarHidden
=
NO
;
navController
.
navigationBar
.
barStyle
=
UIBarStyleBlack
;
[
navController
.
navigationBar
setBackgroundImage
:[
UIImage
imageNamed
:
@"navBarBackground"
]
forBarMetrics
:
UIBarMetricsDefault
];
if
(
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPhone
)
[
navController
.
navigationBar
setBackgroundImage
:[
UIImage
imageNamed
:
@"navBarBackgroundPhoneLandscape"
]
forBarMetrics
:
UIBarMetricsLandscapePhone
];
[
navController
loadTheme
];
[
self
presentModalViewController
:
navController
animated
:
YES
];
}
...
...
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