NSLayoutConstraint (in iOS 8.0 ) has a BOOL property called active , which makes it easy to disable / enable the specified layout constraint on the fly.
To create a second set of layouts for the view controller, which I can then enable / disable programmatically (via IBOutletCollection of NSLayoutConstraints for both sets), I need to disable my already defined layout restrictions in the interface builder.
Let me clarify here, I DO NOT want to delete them, just turn them off so that I can design a second set without an interface constructor that complained all the time about inappropriate restrictions. In addition, switch class classes are not an option, since layout sets are for the same size class.
Is there any way to do this?
Thanks at Advance
Malta
Additional Information: SDK Version: 8.1 Deployment Target 8.0
ios objective-c xcode autolayout interface-builder
Malte
source share