Reputation: 2809
Just a trivial kind of question. I've got a small project open which has two scenes, and two corresponding view controllers. They are matched up properly, with each scene having its own view controller which I set in 'custom class' under identity inspector.
When I have the second scene selected, and then click on assistant editor, the assistant editor brings up the view controller for the other scene. Is this a normal tick in Xcode? Can I fix it?
Thanks.
Upvotes: 5
Views: 4361
Reputation: 6557
Xcode sometimes behaves like this. I haven't figured how the assistant editor decides what to show, though you can always change it by selecting something else from this list: (top left of the assistant editor, next to the <
>
buttons)
Credit to vrwim:
When you select any of the automatic options and Xcode doesn't show the correct one, do a build and check the list again. This fixes it most of the time.
Upvotes: 10