Home » Tag Archives:uiview

Tag Archives: uiview

How to get UIView given a CGPoint?

February 24, 2018 Ios Leave a comment

Questions: I am trying to find a way to get a particular UIView given a CGPoint. Briefly, I want to do a hit test. For example, I have a UIView which has many subviews whose sizes are smaller than the...

UIView Round Corners with Shadow

February 24, 2018 Ios Leave a comment

Questions: I am trying to display a UIView with round corners and with a drop shadow. But the problem is that maskToBounds property only works for either of the case. If maskToBounds is YES then round...

UIView alpha vs. UIColor alpha

February 24, 2018 Ios Leave a comment

Questions: I would like to know the difference between: Assigning my UIView a color with <1 alpha vs Assigning it a non-transparent color but giving the UIView a <1 alpha value. On the screensho...

Mask a UIView with a cut-out circle

February 24, 2018 Ios Leave a comment

Questions: I’ve created a UIView with a semi-transparent black background to sit across my main app’s view. What I’m aiming for here is to create a cut-out circle shape somewhere in that UIView where ...

UIView Background Color Always Black

February 24, 2018 Ios Leave a comment

Questions: When I add a UIView to a View Controller programmatically I am not able to change the background color to any other color, it always remains black. - (void)drawRect:(CGRect)rect { // Drawin...