I am using Xcode 7 and Swift and my drag and drop action is not working

I use Xcode 7, and when I use the drag and drop UITextView control to perform an action on my UITextView in the UITextView file, only the blue line is displayed, but there is no line below the ViewController.swift file in which I can select the output or the Action.

+9
source share
1 answer

This type of problem occurs when you try to connect a ViewController to a class that has another class mentioned in the Identity Inspector storyboard. Make sure your view controller has the same class name as in the storyboard you are trying to connect to.

As shown in the figure, make sure that the class name is correct to which you are trying to connect.

enter image description here

Thanks!

+26
source

All Articles