How can i solve my drag-drop outlet problem?

198 Views Asked by At

i am trying to make an outlet from main.storyboard to ViewController.swift, but when i drag an outlet from my view in storyboard, xcode isn't showing any place where to put an outlet. How can i solve this problem? Thanks

4

There are 4 best solutions below

0
Ruchi Makadia On BEST ANSWER

you need to add your class file name like below enter image description here

0
Gurpreet Singh On

Delete your item from main storybord and drag same position in same view controller.may be its working for u,remeber don't use special character.

0
Baran Gungor On

enter image description hereOn your chosen storyboard, select 'identity inspector' and define your viewcontroll to the 'custom class' section

0
Kunal Arora On

Make sure you have the class set for the storyboard. Now you should be able to open the view controller class via assistant(see image below). enter image description here