Ambrose Yeung
Ambrose Yeung

Reputation: 21

Xcode code linking error always displays "Object: Exit" and can't change connection type

I have encountered a problem with Xcode. Every time I connect any UI Element, I always see Object: Exit when the object is clearly a UIButton or UITextField and also I can't seem to be able to change the connection type.

[An image of the prompt when I am connecting any element]

When I click connect, Xcode sets the @IBoutlet or @IBAction but is not connected to the storyboard:

@IBAction func mainframe(_
    sender: Any) {

    }

Upvotes: 1

Views: 357

Answers (1)

Woodstock
Woodstock

Reputation: 22926

The is happening due to the likelihood that you're not correctly selecting the right viewController in the assistant editor...

On the right panel, check if you have automatically selected and not manual mode.

Also check the custom class is set correctly in the inspector.

Upvotes: 1

Related Questions