I know this is dublicate question (and extremely sorry), but I've tried everything I've found on SO so far, but I am still receiving error this error:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x7fc4a9705960'
Let me clarify the parts clearly with images, so we can produce a good answer for solving related problem.
This is the folder view (ViewController
- main view, and TableView1
is child):
My TableView1.xib
file has:
I have also edited my TableView1.swift
:
override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
return 1
}
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 10
}
In my Main.Storyboard
:
When I select View Controller
(
) it looks like this:
However, when I clicked on the View
():
What am I doing wrong or missing on the way?
More Info: