I'm making an app, but when I try to add data to my table view, my app hangs here:
return UIApplicationMain(argc, argv, nil, NSStringFromClass([MyAppDelegate class]));
Here's my code:
UITableView *fileTable = [[UITableView alloc] initWithFrame:CGRectMake(10, 46, 300, 369) style:UITableViewStylePlain];
[fileTable setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"Canvas_Tile.png"]]];
[fileTable setDelegate:self];
MyFileTableController *cont = [[MyFileTableController alloc] init];
[fileTable setDataSource:cont];
[self.view addSubview:fileTable];
Yes, I am including the UITableViewDelegate and all of my classes including my app delegate are fine. When I remove the "[fileTable setDataSource:cont];", it doesn't crash.