Home > front end >  Xcode lost track of corresponding ViewController making a Reference Outlet
Xcode lost track of corresponding ViewController making a Reference Outlet

Time:08-19

I have built a Xamarin iOS app in Visual Studio for Mac using Xcode to edit the UI storyboard. The app runs great. I even have it in Apple Connect and a tester is testing it.

I need to create a Referencing Outlet in Xcode, for a Text Field but Xcode is not doing the right thing when I Ctrl-drag the Text Field control to the corresponding .h file. Here are two descriptions of the problem.

Description I

I have followed the directions enter image description here

When I display the storyboard and the ThirdViewController.h file side by side - NOT using the assistant - and I Ctrl-drag a control in the ContactUs Scene to ThirdViewController.h, Xcode does not offer the Outlets popup.

So it seems that Xcode has lost track of my ThirdViewController.

What do I need to do to create an Outlet in the ThirdViewController.h file using the Ctrl-drag approach?

CodePudding user response:

When you select your controller in the storyboard, did you check the Identity inspector in the right panel to make sure that your class is set in the CustomClass > Class field?

enter image description here

  • Related