开发者

Making view to autoresize

in controller

scrollView.autoresizesSubviews = YES;

in viewDidLoad of controller I load view object from Nib and

[scrollView addSubview:presentationController.view];

At this point scrollView itself has correct adjusted sizes(which is within tab view controller). The problem is that the layout of newly loaded view object is not updated.

  1. Is there any way to make the object to resize?
  2. Where else I can intercept the point where after adding subview, it's already auto resized, so I can add my code there?

What I need is some additional layout adjustment code for that loaded view, but it should have correct v开发者_运维知识库iew size to apply the tweaks.


Try

[scrollView setNeedsLayout];

and see if that helps?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜