AutoLayout fail in Xcode. Disabled it by accident, how to put it back like it was?










0















I was told that to fix an issue in my Xcode app I could uncheck the "Use auto layout" in the "Interface Builder Document"Use auto layout check



After doing this my whole app broke. See on the pictures:
Error happening after unchecking auto layout.enter image description here



I tried to activate auto layout back but the app was still broken. I tried to redo the contains but doesn't work. Lost please help.










share|improve this question
























  • This is why you should save your work using SCM (git is almost the universal standard by now) :) I don't think there's any way to magically undo all the changes, so use this as an opportunity to learn autolayout, it's awesome!

    – Guy Kogus
    Nov 13 '18 at 18:29











  • I don't see anything wrong with that layout ;). OK, sorry. Maybe try checking "Use Safe Area Layout Guides" as well, and also, make sure that you are actually adding constraints from your views to the edge, maybe those were deleted when you deleted auto layout support.

    – pbodsk
    Nov 13 '18 at 18:31











  • If you disable the autolayout, if you enable it back again, the constraints will be gone. So there's no way on doing that. Not sure if "Undo" will keep track of these changes since XCode has a lot of dumb "Undo" glitches. You should really think about what @GuyKogus said. Even if it's a local repo it still helps.

    – danypata
    Nov 13 '18 at 18:36















0















I was told that to fix an issue in my Xcode app I could uncheck the "Use auto layout" in the "Interface Builder Document"Use auto layout check



After doing this my whole app broke. See on the pictures:
Error happening after unchecking auto layout.enter image description here



I tried to activate auto layout back but the app was still broken. I tried to redo the contains but doesn't work. Lost please help.










share|improve this question
























  • This is why you should save your work using SCM (git is almost the universal standard by now) :) I don't think there's any way to magically undo all the changes, so use this as an opportunity to learn autolayout, it's awesome!

    – Guy Kogus
    Nov 13 '18 at 18:29











  • I don't see anything wrong with that layout ;). OK, sorry. Maybe try checking "Use Safe Area Layout Guides" as well, and also, make sure that you are actually adding constraints from your views to the edge, maybe those were deleted when you deleted auto layout support.

    – pbodsk
    Nov 13 '18 at 18:31











  • If you disable the autolayout, if you enable it back again, the constraints will be gone. So there's no way on doing that. Not sure if "Undo" will keep track of these changes since XCode has a lot of dumb "Undo" glitches. You should really think about what @GuyKogus said. Even if it's a local repo it still helps.

    – danypata
    Nov 13 '18 at 18:36













0












0








0








I was told that to fix an issue in my Xcode app I could uncheck the "Use auto layout" in the "Interface Builder Document"Use auto layout check



After doing this my whole app broke. See on the pictures:
Error happening after unchecking auto layout.enter image description here



I tried to activate auto layout back but the app was still broken. I tried to redo the contains but doesn't work. Lost please help.










share|improve this question
















I was told that to fix an issue in my Xcode app I could uncheck the "Use auto layout" in the "Interface Builder Document"Use auto layout check



After doing this my whole app broke. See on the pictures:
Error happening after unchecking auto layout.enter image description here



I tried to activate auto layout back but the app was still broken. I tried to redo the contains but doesn't work. Lost please help.







ios xcode uitableview autolayout






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 13 '18 at 18:27









rmaddy

241k27315380




241k27315380










asked Nov 13 '18 at 18:19









CharlesBnfCharlesBnf

262




262












  • This is why you should save your work using SCM (git is almost the universal standard by now) :) I don't think there's any way to magically undo all the changes, so use this as an opportunity to learn autolayout, it's awesome!

    – Guy Kogus
    Nov 13 '18 at 18:29











  • I don't see anything wrong with that layout ;). OK, sorry. Maybe try checking "Use Safe Area Layout Guides" as well, and also, make sure that you are actually adding constraints from your views to the edge, maybe those were deleted when you deleted auto layout support.

    – pbodsk
    Nov 13 '18 at 18:31











  • If you disable the autolayout, if you enable it back again, the constraints will be gone. So there's no way on doing that. Not sure if "Undo" will keep track of these changes since XCode has a lot of dumb "Undo" glitches. You should really think about what @GuyKogus said. Even if it's a local repo it still helps.

    – danypata
    Nov 13 '18 at 18:36

















  • This is why you should save your work using SCM (git is almost the universal standard by now) :) I don't think there's any way to magically undo all the changes, so use this as an opportunity to learn autolayout, it's awesome!

    – Guy Kogus
    Nov 13 '18 at 18:29











  • I don't see anything wrong with that layout ;). OK, sorry. Maybe try checking "Use Safe Area Layout Guides" as well, and also, make sure that you are actually adding constraints from your views to the edge, maybe those were deleted when you deleted auto layout support.

    – pbodsk
    Nov 13 '18 at 18:31











  • If you disable the autolayout, if you enable it back again, the constraints will be gone. So there's no way on doing that. Not sure if "Undo" will keep track of these changes since XCode has a lot of dumb "Undo" glitches. You should really think about what @GuyKogus said. Even if it's a local repo it still helps.

    – danypata
    Nov 13 '18 at 18:36
















This is why you should save your work using SCM (git is almost the universal standard by now) :) I don't think there's any way to magically undo all the changes, so use this as an opportunity to learn autolayout, it's awesome!

– Guy Kogus
Nov 13 '18 at 18:29





This is why you should save your work using SCM (git is almost the universal standard by now) :) I don't think there's any way to magically undo all the changes, so use this as an opportunity to learn autolayout, it's awesome!

– Guy Kogus
Nov 13 '18 at 18:29













I don't see anything wrong with that layout ;). OK, sorry. Maybe try checking "Use Safe Area Layout Guides" as well, and also, make sure that you are actually adding constraints from your views to the edge, maybe those were deleted when you deleted auto layout support.

– pbodsk
Nov 13 '18 at 18:31





I don't see anything wrong with that layout ;). OK, sorry. Maybe try checking "Use Safe Area Layout Guides" as well, and also, make sure that you are actually adding constraints from your views to the edge, maybe those were deleted when you deleted auto layout support.

– pbodsk
Nov 13 '18 at 18:31













If you disable the autolayout, if you enable it back again, the constraints will be gone. So there's no way on doing that. Not sure if "Undo" will keep track of these changes since XCode has a lot of dumb "Undo" glitches. You should really think about what @GuyKogus said. Even if it's a local repo it still helps.

– danypata
Nov 13 '18 at 18:36





If you disable the autolayout, if you enable it back again, the constraints will be gone. So there's no way on doing that. Not sure if "Undo" will keep track of these changes since XCode has a lot of dumb "Undo" glitches. You should really think about what @GuyKogus said. Even if it's a local repo it still helps.

– danypata
Nov 13 '18 at 18:36












1 Answer
1






active

oldest

votes


















0














Thanks everyone for helping. Like some of you said there was anyway to actually bring back the old constraints.
What I had do do was basically ,view controller by view controller, delete all constraints and put back new ones. Took a while to make it back like it was before but it is possible.
Thanks Again






share|improve this answer























  • Give git repro a try :) You will never loose so much time in the future.

    – Passe
    Nov 13 '18 at 22:55











  • @Passe yea thank you I will look into that :)

    – CharlesBnf
    Nov 14 '18 at 7:05










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53287246%2fautolayout-fail-in-xcode-disabled-it-by-accident-how-to-put-it-back-like-it-wa%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Thanks everyone for helping. Like some of you said there was anyway to actually bring back the old constraints.
What I had do do was basically ,view controller by view controller, delete all constraints and put back new ones. Took a while to make it back like it was before but it is possible.
Thanks Again






share|improve this answer























  • Give git repro a try :) You will never loose so much time in the future.

    – Passe
    Nov 13 '18 at 22:55











  • @Passe yea thank you I will look into that :)

    – CharlesBnf
    Nov 14 '18 at 7:05















0














Thanks everyone for helping. Like some of you said there was anyway to actually bring back the old constraints.
What I had do do was basically ,view controller by view controller, delete all constraints and put back new ones. Took a while to make it back like it was before but it is possible.
Thanks Again






share|improve this answer























  • Give git repro a try :) You will never loose so much time in the future.

    – Passe
    Nov 13 '18 at 22:55











  • @Passe yea thank you I will look into that :)

    – CharlesBnf
    Nov 14 '18 at 7:05













0












0








0







Thanks everyone for helping. Like some of you said there was anyway to actually bring back the old constraints.
What I had do do was basically ,view controller by view controller, delete all constraints and put back new ones. Took a while to make it back like it was before but it is possible.
Thanks Again






share|improve this answer













Thanks everyone for helping. Like some of you said there was anyway to actually bring back the old constraints.
What I had do do was basically ,view controller by view controller, delete all constraints and put back new ones. Took a while to make it back like it was before but it is possible.
Thanks Again







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 13 '18 at 21:22









CharlesBnfCharlesBnf

262




262












  • Give git repro a try :) You will never loose so much time in the future.

    – Passe
    Nov 13 '18 at 22:55











  • @Passe yea thank you I will look into that :)

    – CharlesBnf
    Nov 14 '18 at 7:05

















  • Give git repro a try :) You will never loose so much time in the future.

    – Passe
    Nov 13 '18 at 22:55











  • @Passe yea thank you I will look into that :)

    – CharlesBnf
    Nov 14 '18 at 7:05
















Give git repro a try :) You will never loose so much time in the future.

– Passe
Nov 13 '18 at 22:55





Give git repro a try :) You will never loose so much time in the future.

– Passe
Nov 13 '18 at 22:55













@Passe yea thank you I will look into that :)

– CharlesBnf
Nov 14 '18 at 7:05





@Passe yea thank you I will look into that :)

– CharlesBnf
Nov 14 '18 at 7:05

















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53287246%2fautolayout-fail-in-xcode-disabled-it-by-accident-how-to-put-it-back-like-it-wa%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Barbados

How to read a connectionString WITH PROVIDER in .NET Core?

Node.js Script on GitHub Pages or Amazon S3