xuyuanzhou / react-native-yz-vlcplayer

VLC Player for react-native
MIT License
152 stars 52 forks source link

ios不断重复进入播放器所在页面,多次后导致app闪退 #34

Open tzraeq opened 5 years ago

tzraeq commented 5 years ago

如题,ios不断重复进入播放器所在页面,多次后导致app闪退。xcode提示在VLCMediaPlayer的dealloc方法中发生错误,大神你遇到过么?

xuyuanzhou commented 5 years ago

暂时还没有想到什么好的解决办法,我到时再看看

cshlxm commented 5 years ago

我把最后 removeFromSuperview 方法注释掉。。然后好了。不确定什么情况,但是不闪退了 `- (void)dealloc{ [self _release]; }

pragma mark - Lifecycle

//- (void)willMoveToSuperview:(UIView *)newSuperview //- (void)didMoveToSuperview

//- (void)willRemoveSubview:(UIView *)subview

// //- (void)removeFromSuperview //{ // NSLog(@"removeFromSuperview"); // [self _release]; // [super removeFromSuperview]; //}`