开发者

Determine UIView frame after being added to subview

开发者 https://www.devze.com 2023-02-06 05:55 出处:网络
I have custom UIView with autoResizeMask. Let\'s call it A view. I initWithFrame the A view and add it to subview B. After adding A view to B, B autoresizes A (the frame changes). To say it in other w

I have custom UIView with autoResizeMask. Let's call it A view. I initWithFrame the A view and add it to subview B. After adding A view to B, B autoresizes A (the frame changes). To say it in other words -- B view fits in A view.

My question is, how can I determine the new frame within A view before showing it user? B开发者_运维问答ecause I want to make some changes to A according new frame.

(my A view is UIScrollView subclass, and I want to set correct contentSize).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号