Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
9221ad0c
Commit
9221ad0c
authored
Sep 29, 2015
by
Felix Paul Kühne
Browse files
VLCAlertView: make sure the completion handler is actually being called
parent
3200ac1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Sources/VLCAlertView.m
View file @
9221ad0c
...
...
@@ -2,7 +2,7 @@
* VLCStatusLabel.m
* VLC for iOS
*****************************************************************************
* Copyright (c) 2014 VideoLAN. All rights reserved.
* Copyright (c) 2014
-2015
VideoLAN. All rights reserved.
* $Id$
*
* Authors: Carola Nitz <nitz.carola # googlemail.com>
...
...
@@ -45,11 +45,19 @@
}
-
(
void
)
alertView
:(
UIAlertView
*
)
alertView
didDismissWithButtonIndex
:(
NSInteger
)
buttonIndex
{
if
(
self
.
completion
)
{
self
.
completion
(
buttonIndex
==
self
.
cancelButtonIndex
,
buttonIndex
);
self
.
completion
=
nil
;
self
.
delegate
=
nil
;
}
}
-
(
void
)
show
{
if
(
self
.
completion
)
self
.
delegate
=
self
;
[
super
show
];
}
@end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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