tags:

views:

72

answers:

0

I am using MPMoviePlayerController to play streaming audio, but I want to show the view that I am launching the movie player from instead of the fullscreen movie player.

I am doing this-

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyWindowChanged) name:UIWindowDidBecomeKeyNotification object:nil];

and then -

-(void)keyWindowChanged
{
 [self.view addSubview:self];
}

This works fine, but the debugger console reports:

* NSRunLoop ignoring exception '* -[MyView superview]: unrecognized selector sent to instance 0x50dea00' that raised during posting of delayed perform with target 0x50e9490 and selector '_play'

Is this an error that I can safely ignore, or is there a better way to present this view?