Reputation: 81
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
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).
Upvotes: 0
Reputation: 178
On your chosen storyboard, select 'identity inspector' and define your viewcontroll to the 'custom class' section
Upvotes: 0
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