ios - UIView returning wrong values for height with AutoLayout -
i have custom uiview draws "ring" progress of cashaplelayer
and uibezierpath
. when drawing bezier path view want draw center of view. view has auto layout contrains leading , trailing it's superview , aspect ration 1:1 (so it's perfect square).
my first idea i'll sizes (height , width) of view, divide 2, make cgpoint , use bezier path. logic return exact middle of view wouldn't it?
apparently not. in log view returns 497 height , width, view debugger tells me it's 303 , view looks this:
has , idea why happening?
Comments
Post a Comment