I have enabled Autoresize Subviews in the superview via interface builder. Is there any way to programmatically disable the autoresizing of ONE subview view?

有帮助吗?

解决方案

I assume you really are using autoresizing, not autolayout.

Set that subview's autoresizingMask to UIViewAutoresizingNone to make its parent ignore it during autoresizing.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top