Xcode: drag and drop control only works in the first storyboard view controller

When I make a project in Xcode and select a template for the Single view application, I can only simply drag and drop the controls of the presentation of the first storyboard element into ViewController.m and .h. I understand, I chose the SINGLE view application, but I think there should be another option.

I tested the "plug-in application", and this template creates its own .h and .m files for each view controller. I tested to rename ViewController.hboth .m FirstViewContoller.hand .m. Now it has been ruined. So, I deleted the project, and here I am.

What should I do?

+4
source share
2 answers

, IBOutlets IBActions .

, Identity Inspector Custom Class View. .

+4

, @interface @implementation, ? ( .h)

@interface FirstViewController : UIViewController

( .m)

@implementation FirstViewController

,

0

Source: https://habr.com/ru/post/1538995/


All Articles