-1

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

kiwi
  • 81
  • 3

4 Answers4

2

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

Ruchi Makadia
  • 1,005
  • 1
  • 7
  • 20
0

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

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

Baran Gungor
  • 176
  • 8
0

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