kiwi
kiwi

Reputation: 81

How can i solve my drag-drop outlet problem?

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

Upvotes: -1

Views: 209

Answers (4)

Kunal Arora
Kunal Arora

Reputation: 41

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

Upvotes: 0

Baran Gungor
Baran Gungor

Reputation: 178

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

Upvotes: 0

Ruchi Makadia
Ruchi Makadia

Reputation: 1103

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

Upvotes: 2

Gurpreet Singh
Gurpreet Singh

Reputation: 41

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.

Upvotes: 0

Related Questions