Reputation: 1724
in Xcode 4 IB is there a way to move a bunch of subviews from one superview to another without destroying their current layout?
This should be super easy, but when I try to copy/paste or move them in the view tree they all move to one position. I'd prefer not to reposition each of them manually after adding one extra view to hold part of a form for example.
In Flash there is Cmd-Shift-C for 'paste in place'. I'm looking for something similar in IB.
Upvotes: 8
Views: 3932
Reputation: 1394
I had the same problem as OP, but I found a great solution on another thread. Answer by Jay: https://stackoverflow.com/a/16952902/2070758
Basically, you can't copy/paste directly, but you can with some extra steps:
Upvotes: 21
Reputation: 2683
Was looking for the solution to the same annoying limitation in xCode... found a trick:
worked for me but geeesh what a pain.
Upvotes: 4