I've created four storyboads. Each storyboard contains a view controller. I've created 4 subclasses. I wanted to connect UI to code but Xcode assistant editor "automatic" only shows one file, UIViewController.h. But that's not my header file. So, I set it to "manual" but I can't drag the UI to code if I set it to manual. And if I drag the UI to UIViewController.h ,it says that I have no permission to edit UIViewController.h.
xcode assistant editor automatic not shows one file
Sounds like you haven't assigned the UIViewController subclasses to the Interface Builder view controllers.
Select a view controller in a storyboard or IB outline tree then supply the appropriate subclass name in the class field at top of identity inspector in the utilities pane at right-hand edge of Xcode window.
Now 'automatic' should be displaying the subclass code when the view controller is selected in IB.
I've tried your answer and it works. Thank you.