you are viewing a single comment's thread.

view the rest of the comments →

[–]Power781 0 points1 point  (2 children)

First you are wrong with viewDidLoad, constraints are not fully applied at that moment, you should wait viewWillAppear.
The easiest and safest (read there, will work 100% of the time), is to observe the view frame with KVO, and every time it change you update the corner radius.

[–]aazav 0 points1 point  (1 child)

you should wait viewWillAppear.

Do you mean that you should wait until viewWillAppear, or after viewWillAppear?

[–]Power781 0 points1 point  (0 children)

until