Hi to everyone,
I have a trouble in Xcode, when i try to do "drag and drop " from storyboard to viewcontroller.swift to insert an @iboutlet, the system doesn't do it.
Hi to everyone,
I have a trouble in Xcode, when i try to do "drag and drop " from storyboard to viewcontroller.swift to insert an @iboutlet, the system doesn't do it.
Have you set the Custom Class in the identity inspector for the view controller?
(Also I am assuming by "drag and drop" you actually mean control-drag, which is how IB connects outlets / actions / constraints... if you are actually just doing a click & drag without the control key, don't do that 🙂 )
I'm experiencing the same problem.
Why doesn't the @IBOutlet code get inserted?
Me too having this problem
Me too having this problem
@mksmurali most common cause is that the class in IB of the viewController is not set to the one where you try to drag and drop. Check in Identity Inspector. You may also have to do a Clean Build Folder and possibly restart Xcode.