I am trying to set mask on my blue UIView
for which I have to set frame
for mask but problem is blue UIView
is using auto layout
.
How can I get x, y, width, height
of UIView
which is using auto layout
to use like this [self.v.layer.mask setFrame:CGRectMake(?, ?, ?, ?)];
.
Is using frame
property like self.v.frame.size.width;
is correct while using auto layout
? or is there any other approach of getting an UIView x, y, width, height
which is using auto layout
.
Please see the screen shot below.