0

Developing in Xcode 9.3 Beta 2, had some issues with with BarButtonItem (fix), but then got some crashes. So removed then re-added the logout button, but drag-and-dropping gives me this callout:

enter image description here

Setting the type to UIButton and name to logoutPressed, but that didn't work: enter image description here

More info: enter image description here

EDIT: Traced it down to wrong ViewController binding. But checking tableViewController in XML, and it has the correct customClass and customModule set. Same on the GUI. How do I rebind?

How do I get drag-and-drop component binding working again? - Or alternatively: how do I manually bind in XML?

Community
  • 1
  • 1
A T
  • 13,008
  • 21
  • 97
  • 158

1 Answers1

0

I found a solution, launch Xcode 9.2, copy everything from your old storyboard file to a new one, delete the old one, rename the new one Main.storyboard, that fixed it for me

Make sure you drag to the right class file

Harcker
  • 151
  • 1
  • 13
  • 1
    Yeah I eventually did that, but kept a copy of my old version on my HDD. In fact, I manually recreated all the views and buttons & whatnot; starting from a new Xcode project (copying over just my .swift files). Not going to accept your answer, going to wait for someone to tell me how to actually debug the .storyboard. Thanks though – A T Mar 24 '18 at 01:00