2
I’m new to Swift programming and I’m having a doubt. I have two files The main one: Viewcontroller.Swift and another one I created called Viewsegundo.Swift.
I took the class
import UIKit
class ViewSegundo: UIViewController {
@IBOutlet weak var img4: UIImageView!
override func viewDidLoad() {
}
}
I pointed it in the custom class of the second View, when using the right mouse button on the button and Seto to second view works, more I need to do via code, and do not know how to do.
Thanks Gabriel, now yes with your tip I saw that in addition to the code I needed to identify the storyboard follows with the name of the second View then I pulled from the main View the link to another view I gave the name and used the code and it all worked out.
– user1649307
@user1649307 if it worked mark the answer as accepted, so that people can identify that the answer solved their problem.
– Gabriel Rodrigues
How about a tour
SO
? http://answall.com/tour– Gabriel Rodrigues