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
9488135e
Commit
9488135e
authored
Jun 16, 2013
by
Romain Goyet
Committed by
Felix Paul Kühne
Jun 17, 2013
Browse files
Safer state machine for settings initialization
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
13bf28e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
AspenProject/VLCMenuViewController.m
View file @
9488135e
...
...
@@ -144,11 +144,14 @@
-
(
IBAction
)
showSettings
:(
id
)
sender
{
if
(
!
self
.
settingsViewController
)
self
.
settingsViewController
=
[[
IASKAppSettingsViewController
alloc
]
initWithStyle
:
UITableViewStyleGrouped
];
if
(
!
self
.
settingsController
)
if
(
!
self
.
settingsController
)
{
self
.
settingsController
=
[[
VLCSettingsController
alloc
]
init
];
}
if
(
!
self
.
settingsViewController
)
{
self
.
settingsViewController
=
[[
IASKAppSettingsViewController
alloc
]
initWithStyle
:
UITableViewStyleGrouped
];
self
.
settingsController
.
viewController
=
self
.
settingsViewController
;
}
self
.
settingsViewController
.
modalPresentationStyle
=
UIModalPresentationFormSheet
;
self
.
settingsViewController
.
delegate
=
self
.
settingsController
;
...
...
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