Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Subview Background Color Not Showing

$
0
0

Hi everyone,

I am subclassing UIView and trying to set a background colour for it with no luck. When I add it as a subview to a parent controller any custom drawing or background colours don't get drawn. Labels and images within this UIview ARE being drawn.

However if I did something like:

ParentController.View = SubUIView

then the background colour and custom drawing gets drawn to the screen. I have tried setting Opaque = true on all the possible views, no change.

Is there something I'm doing wrong?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>