D
D
Dauren S2016-12-06 13:45:44
Swift
Dauren S, 2016-12-06 13:45:44

Can't connect new viewcontroller in mainstoryboad with viewcontroller.swift?

In mainstoryboard I create a new viewcontroller and try to connect it to viewcontroller.swift. But does not want to connect, and the old one created initially connects. Why?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Cherny, 2016-12-06
@freeg0r

It's not clear what "I'm trying to connect" means. When you added a UIViewController to the storyboard, you need to assign it the type of your new controller, in Identity (third icon from the left in the inspector: Custom Class)
f00189b3baed4676906f6190bea17e00.jpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question