문제

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