I am trying to make a view that contains several tableViews in it - basically a week calendar view that each day is a tableView that shows the events of that day.
In the storyboard I'v added to the view a tableView and tried to connect it in two different ways in the viewDidLoad:
DaysTableViewController * tvc = [[DaysTableViewController alloc] initWithStyle:UITableViewStylePlain];
self.dayView.delegate = tvc;
self.dayView.dataSource = tvc;
or:
DaysTableViewController * tvc = [[DaysTableViewController alloc] initWithStyle:UITableViewStylePlain];
self.dayView = tvc.tableView;
when dayView is my IBOutlet property for the tableView in the storyboard. but it crash in both ways, and I dont know where it crash in the code.
I know the DaysTableViewController itself works fine, because when I push it in a NavigationController it works.
Am I doing something wrong?