Failed to set exit link

I am unable to set the link to create the textbox that I created. I am trying to do this using Ctrl-Drag. Can anyone advise? I have set up a delegate as a view controller. In general, I only have one view that is populated with multiple text fields, and I wrote the following code for ViewController.h, which I am trying to set up as a referencing output:

@property (weak, nonatomic) IBOutlet UITextField *userIDText;

      

+3


source to share


3 answers


First make sure that the control you are dragging is the same class as the rosette (in this case UITextField

), or it can be a subclass of that class.

Second, make sure that the control parent view is a subclass of the file you are dragging to.



Third, make sure the file you are dragging and dropping is saved . This is the most common problem I've encountered. Go to the original file you are dragging and press Cmd + S to save.

Fourth, if in doubt, Cmd + Shift + K to clean, Cmd + B to build, then try again. If that still doesn't work, restart Xcode. And if it still doesn't work, go back through the checklist.

+6


source


In my case, to create a referencing output,



  • I had to open the storyboard.
  • Click on the top item View Controller (left panel in storyboard)
  • In the Identity Inspector (right pane), I had to select my custom view controller class from the list before I could drag and drop a link in it.
0


source


In my circle (swift3) 1.Click on storyboard. 2.Ctrl-Drag from black window and ReferationOutlet to view on storyboard. enter image description here

0


source







All Articles