Fix partial swiping on video shows black screen
In iOS 11, Apple added a feature to close the Video Player via a swipe gesture. Partial swiping cases viewWillDisappear to be called without viewDidDisappear which cases a black screen.
This commit is contained in:
parent
7f011aba33
commit
a2a7cf1452
@ -8,13 +8,9 @@
|
|||||||
|
|
||||||
- (void)viewDidDisappear:(BOOL)animated
|
- (void)viewDidDisappear:(BOOL)animated
|
||||||
{
|
{
|
||||||
[super viewDidDisappear:animated];
|
[super viewDidDisappear:animated];
|
||||||
[_rctDelegate videoPlayerViewControllerDidDismiss:self];
|
[_rctDelegate videoPlayerViewControllerWillDismiss:self];
|
||||||
}
|
[_rctDelegate videoPlayerViewControllerDidDismiss:self];
|
||||||
|
|
||||||
- (void)viewWillDisappear:(BOOL)animated {
|
|
||||||
[_rctDelegate videoPlayerViewControllerWillDismiss:self];
|
|
||||||
[super viewWillDisappear:animated];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Loading…
Reference in New Issue
Block a user