Reputation: 21
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.
[]
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
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