I am creating a simple media player app. My App is crashed when first link is played and I clicked second link in uitableview.
- (void)viewDidLoad {
[s
When using KVO you must balance calls to addObserver:forKeyPath:options:context:
with calls to removeObserver:forKeyPath:
(see the KVO programming guide).
Try removing the view controller as an observer when the stop button is tapped e.g.
- (IBAction)btnStop_Click:(id)sender {
[[player currentItem] removeObserver:self forKeyPath:@"timedMetadata"];
}