Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Assistant Editor not displaying correct view controller?

Tags:

xcode

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.

like image 318
cheznead Avatar asked Jan 09 '23 16:01

cheznead


1 Answers

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)

enter image description here


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.

like image 121
Lord Zsolt Avatar answered Jan 23 '23 22:01

Lord Zsolt