Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove constraints on storyboard or menu

Tags:

xcode

ios

I'm new to Xcode

I have lots of constraints on the object,

How to remove it on XCODE?

Thanks

enter image description here

like image 900
user3675188 Avatar asked Oct 16 '14 10:10

user3675188


Video Answer


2 Answers

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...

enter image description here

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.

like image 102
Fogmeister Avatar answered Sep 24 '22 22:09

Fogmeister


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.

like image 24
Nicholas Smith Avatar answered Sep 23 '22 22:09

Nicholas Smith