I just want to turn the auto layout feature for one view only in mystoryboard . is that possible and if yes , how do I do that . I'm using xcode 4.6.3
From the answer given by MuhammadAamirAli here, its possible. Here is a snapshot code from his answer, which I found useful.
[self.benchmarkButton removeFromSuperview];
[self.benchmarkButton setTranslatesAutoresizingMaskIntoConstraints:YES];
[self.benchmarkButton setFrame:CGRectMake(20, self.benchmarkButton.frame.origin.y+40, 260, 30)];
[self.benchmarksView addSubview:self.benchmarkButton];
This is not tested yet, but it could work and override the auto-layout done in interface builder, it also lets you specify a views array: https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/AutoLayoutinCode/AutoLayoutinCode.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With