Remove Auto-Layout Constraints for Specific Object

前端 未结 6 455
走了就别回头了
走了就别回头了 2020-12-24 05:16

I have a UIImageView embedded in a UIView. My entire app uses AutoLayout, but I want to remove constraints for the

6条回答
  •  失恋的感觉
    2020-12-24 05:50

    In XCode 5 there is an option while editing constraints 'Remove at build time'. If this is enabled the constraint will automatically be removed during run-time. The option is there to keep Interface Builder happy if you don't want particular constraints.

提交回复
热议问题