問題が発生しています: あるビューから次のビューに正常に移行しています - 静止画像を含むビューからビデオ (avPlayer を使用して mov または mp4 など) を含むビューへ、またはその逆、またはその他のタイプのシーケンス.
ただし、ビデオを含むビューから画像を含むビューに移行すると、画像が読み込まれた後もビデオの音が聞こえます。変。最も面白いのは、ビデオからビデオに移行するときに発生しないことです... 何かアイデアはありますか?
ビューの遷移に使用しているコードを確認してください (ディゾルブ効果を使用):
- (void) replaceView: (UIView *) theCurrentView withView: (UIView *) theReplacementView
{
theReplacementView.alpha = 0.0;
[self.view addSubview: theReplacementView];
[UIView animateWithDuration: 1.5
animations:^{
theCurrentView.alpha = 0.0;
theReplacementView.alpha = 1.0;
}
completion:^(BOOL finished) {
[theCurrentView removeFromSuperview];
}];
self.currentView = theReplacementView;
[self.view addSubview:theReplacementView];
}