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
2225db4f
Commit
2225db4f
authored
Jun 16, 2013
by
Romain Goyet
Committed by
Felix Paul Kühne
Jun 17, 2013
Browse files
Reduce code duplication
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
6aea606c
Changes
1
Hide whitespace changes
Inline
Side-by-side
AspenProject/VLCPlaylistViewController.m
View file @
2225db4f
...
...
@@ -13,6 +13,7 @@
#import "VLCPlaylistTableViewCell.h"
#import "VLCPlaylistGridView.h"
#import "VLCMenuViewController.h"
#import "UINavigationController+Theme.h"
#import "NSString+SupportedMedia.h"
@implementation
EmptyLibraryView
...
...
@@ -297,10 +298,7 @@
if
(
self
.
menuViewController
==
nil
)
{
VLCMenuViewController
*
menuViewController
=
[[
VLCMenuViewController
alloc
]
initWithNibName
:
nil
bundle
:
nil
];
UINavigationController
*
navigationController
=
[[
UINavigationController
alloc
]
initWithRootViewController
:
menuViewController
];
[
navigationController
.
navigationBar
setBackgroundImage
:[
UIImage
imageNamed
:
@"navBarBackground"
]
forBarMetrics:
UIBarMetricsDefault
];
[
navigationController
.
navigationBar
setBackgroundImage
:[
UIImage
imageNamed
:
@"navBarBackgroundPhoneLandscape"
]
forBarMetrics:
UIBarMetricsLandscapePhone
];
[
navigationController
loadTheme
],
self
.
menuViewController
=
navigationController
;
if
(
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPad
)
navigationController
.
navigationBarHidden
=
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