Autolayout detects when a UIView received a frame

I have UIViewone that has auto-layout limitations. I create it with a frame CGRectZero. So I'm not a real size. This will depend on the supervisor.

But I want to know when my view gets a frame that I can use for my calculations.

+4
source share
1 answer

Therefore, you do not need to know anything about the frame. Although, if you needed to know, you can simply implement it -layoutSubviewsin your view or -viewDidLayoutSubviewsat the controller level.

super , AutoLayout .

# 7 : .

AutoLayout .

+6

All Articles