Quote:
Originally Posted by Jean Jacques
I have this error/warning in the VideoController.m file which relates to the line:
Code:
[movie setBackgroundColor:[UIColor blackColor]];
The Xcode commentary says:
Would be great if I could receive PLAIN instructions - for a newbie programmer lacking fundamentals - how to get rid of these errors. I of course checked other posts on similar stuff but did not manage to implement found suggestions... So what precisely should I put in this line?
Thanks a million!
|
Use code tags, not quote tags, for including code. If you use quote tags, when somebody replies, the quotes are lost.
I gather that
"movie" is an MPMoviePlayerController?
Don't just look at the messages from the error window. Go look at the documentation for the class who's method is deprecated. Generally, that's where the info on what to do will be.
In this case, it says:
Quote:
backgroundColor
The color of the background area behind the movie. (Available in iOS 2.0 through iOS 3.1. Get the view from the backgroundView property and set its color directly.)
|
So, if you look at MPMoviePlayerController, it has a property backgroundView. The BackgroundView is a UIView, and UIVIew has a backgroundColor property.
So, your change would be:
Code:
[[movie backgroundView] setBackgroundColor:[UIColor blackColor]];