I have a view, which is divided into 2 parts. On the top half of the view I want a blue background and on the bottom half I want a transparent background. I am not sure if it can be done.
Any suggestions will be appreciated. Thanks
I have a view, which is divided into 2 parts. On the top half
Share
There are multiple ways to do this. By far the easiest is to simply create a subview in the top half of the view with a blue background. Other methods include adding a sublayer or overriding
drawRectwith custom drawing code.