jimbob
jimbob

Reputation: 3298

cannot undo storyboard changes xcode

Does anyone know how I can undo changes made to a storyboard. Everytime I accidentally delete an element I cannot get it back and it is becoming a real timewaster.

Anyone know?

Upvotes: 6

Views: 6088

Answers (3)

magula
magula

Reputation: 151

Don't hit the delete key in storyboard. You'll wipe out the storyboard file. I dragged it from the macbook trash back into the xCode navigator. Good old trash.

Upvotes: 0

ekeren
ekeren

Reputation: 3458

You should be able to do a simple undo from Xcode storyboard, it might be related to some leftovers...

To make a good cleanup:

  1. open Xcode
  2. clean product (Command + Shift + K)
  3. Clean Build folder (Option + Command + Shift + K)
  4. Close Xcode
  5. delete /Users/(your username)/Library/Developer/Xcode/DerivedData
  6. repopen xcode
  7. open Storyboard, change something, try to use Command+Z

Hope it works

Upvotes: 9

Vinay Jain
Vinay Jain

Reputation: 2634

Using MAC + Z or Edit Menu -> Undo.

Upvotes: 1

Related Questions