I'm new to Xcode
I have lots of constraints on the object,
How to remove it on XCODE?
Thanks
Single Constraint
To remove a single constraint just select it and hit delete.
All constraint for a selected view(s)
To remove constraints for a single view you select the view and hit the triangle button in the bottom right hand corner...
And hit "Clear Constraints" under the "Selected Views" part.
All constraints in a View Controller
To clear constraints for an entire View Controller do the same but hit "Clear Constraints" under the "All Views in ..." part.
All constraints in a storyboard
To clear all constraints in the Storyboard you'd be best to disable Auto Layout and then re-enable it for the Storyboard.
If you double click on the constraint in the side pane you've added a photo off, it'll locate it in the Constraints
drop down on the left hand panel then just press delete on your keyboard.
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