Reputation: 505
I am building a user interface using storyboards. In order to make my screen do what I want when the screen rotates I embedded my existing views/controls in a UIView (using Xcode, Editor, Embed In). My storyboard looks like I want it to. BUT when I run the app NONE of the controls appears on the screen.
. The hierarchy and constraints all seem to be correct (no errors or advisory comments
.
What am I doing wrong? What did I do to cause these controls to disappear? The container views are not opaque and alpha is either 0 or otherwise low as can be seen by the background image. What do I misunderstand?
Upvotes: 0
Views: 762
Reputation: 505
I finally found the problem. I must be misunderstanding something, but what solved the problem is setting the background of the container view to clear/color. Unclicking Opaque didn't solve the problem. The background image came through the container (if I set it up front), but for some reason the controls did not show up ... until I changed the background color.
Upvotes: 0