Ripa Saha
Ripa Saha

Reputation: 2540

referencing outlets with new view controller table view

I've an button in my storyboard's main view. now I need to open an new table view in new screen when this button will be clicked. For this, I've

1. dragged an new view controller in the empty space on storyboard.
2. dragged an table view inside this new viewcontroller.

now not able to define this new table view in ViewController.swift. ctrl + drag from table view to ViewController.swift not opening any dialog.

any idea what wrong am I doing here.....

Upvotes: 1

Views: 549

Answers (1)

renjithr
renjithr

Reputation: 313

From the details you have given, it looks like you have not set your viewController Class. Create a custom view controller class. Specify this class as the custom class in the Attributes inspector for the viewController scene and try adding your tableView.

Upvotes: 1

Related Questions