ios - UIView returning wrong values for height with AutoLayout -


i have custom uiview draws "ring" progress of cashaplelayerand 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:

totally wrong calayer

has , idea why happening?


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -