I've created a simple view that will show some AVPlayer content, or if this does not exist (initial state) draw a splash image.
I've added the IB_DESIGNABLE directive, and am drawing the splash image in drawRect. However, in Interface Builder, the component renders as a black square. I'd like it to draw the image. Is this possible?
At runtime all works fine.
To investigate what goes on within the IB rendition for your drawRect:
implementation, I would recommend to debug how your view behaves with IB using the debugger.
For that, select your view in IB, and then use the Debug Selected Views
item from the Editor
menu in XCode. By setting up a breakpoint in the drawRect:
you should be able to understand what's going on and why you get a black square.