Closed stuffmc closed 11 years ago
Ob boy. Sometimes RTFM helps — I wasn't paying attention to this in the console
Unknown class DVPlayerView in Interface Builder file.
— Reading this helped: http://stackoverflow.com/questions/1725881/unknown-class-myclass-in-interface-builder-file-error-at-runtime
I also wasn't paying that DVPlayerView
isn't part of the Classes
directory but rather part of the sample.
I'll close the issue, but the README
file should really be updated with a few steps to follow to be able to use it. I consider creating a "Wrapper" class with some of the code being in the Demo app.
This code in the demo app's
DVViewController
'sviewDidLoad
:(AVPlayerLayer *)self.playerView.layer;
actually casts the
playerView
's layer to an instance ofAVPlayerLayer
.When I apply this code in my own app, however, it doesn't casts, but stays an instance of
CALayer
. My outlet toplayeView
isstrong, nonatomic
and the actualUIView
object in the.storyboard
is an instance ofDVPlayerView
.I'm pretty sure this isn't an issue/bug per se but might be something wrong with my code. This might as well be something different with the configuration of my
.xcodeproj
. Unsure. Any tip/direction?