0

I created a class called HelloWorld and I would like to link it with a display.

I could code in the HelloWorld class in order to control the behaviour for a specific app page.

However, when I clicked on the identifier inspector, it doesn't show the HelloWorld class at all. I was wondering which process I did it incorrectly?

enter image description here enter image description here

Here is an example:

enter image description here

Bhavin Bhadani
  • 22,224
  • 10
  • 78
  • 108
munmunbb
  • 297
  • 9
  • 22

2 Answers2

0

I guess the problem is you are trying to change you ViewController's view's class, not your controller's class.

To do that,

Step 1: click on your view controller/Click on Hello World shown in your above image.

Step 2: Then try to change class name in interface builder.

That's it.

Mohammad Zaid Pathan
  • 16,304
  • 7
  • 99
  • 130
0

While creating a class always remember to choose correct class for your subclass. like if you are trying to add class in UITableViewController type view than your subclass must be of UITableViewController

enter image description here

Sujay
  • 2,510
  • 2
  • 27
  • 47