UITableHeaderFooterView from xib key-value-coding crash
ios, ipad, iphone, objective-c, uitableview
Solution
You'll get this crash if you have previously created a connection between the xib and your code and then renamed the property in your code, or delete it and create a new connection. XCode doesn't tidy up deleted connections or renamed connections. Check exactly what connections there are in in interface builder (use the connections inspector), you probably have an out dated one.
Problem
I'm making a table header from a XIB however i keep getting a crash for key-value-coding compliance on my labels in the header on this line .. ``` UIView *headerView = [tableView dequeueReusableHeaderFooterViewWithIdentifier:@"MileageEntryTableHeaderView"]; ``` In my viewDidLoad I call ``` [_tableView registerNib:[UINib nibWithNibName:@"MileageEntryTableHeaderView" bundle:nil] forHeaderFooterViewReuseIdentifier:@"MileageEntryTableHeaderView"]; ``` then in my `- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section` delegate i have ``` UIView *headerView = [tableView dequeueReusableHeaderFooterViewWithIdentifier:@"MileageEntryTableHeaderView"]; return headerView; ``` My labels in the xib are just standard labels. I allocate them in my .h and connected them in my xib from the file's owner. (right click files owner, drag to appropriate label). What exactly is causing my crash here?