After programmatically applying constraints to a view, I'm finding it difficult to use that view's frame - all values are zero.
I know that I can implement frame-dependent code in the view controller via viewDidLayoutSubviews
- within that method, the frame has been set. But I'd rather not use a view controller for what I'm trying to do. Is there a similar method that fires in UIView? Or a notification? Something must call viewDidLayoutSubviews
...
I've found related answers (best one here), but haven't been able to find an answer to this specific question.