All,
I have this in swift
class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
@IBOutlet var tableView: UITableView!
So if i go in the storyboard, I should be able to see that, and I should be able to connect it like this :
So I should be able to go to 'New Referencing Outlet' and drag it on the view controller (yellow tab at the top) and I should see 'tableView' and connect it. This doesn't happen , I am confused why !
On the picture you posted I can see you are looking for
IBOutlet
, but you selected thetableView
not the whole controller.Click on the white status bar (where yellow - controller and 2 oranges - responder and exit buttons are) then you will see your
IBOutlet
Do no type following line in advance.
Instead, add a UIComponent in your storyboard first and then using "assistant editor" drag the connection link in your swift file.