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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -