My application crashes when I attempt to dequeus a cell in a table view.
This particular app is contructed with a main storyboard with xib files supporting additional details.
The bulk of the code is in objective C
I have contsructed an xib containing some top level infomation and a table view with the details
I then constructed a table view cell containing the detailed information.
When I configured the table view cell, I gave it a reuseidentifer of @"AmtCell".
The code in my controller that attempts to write into the table view cell is:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"AmtCell";
AmortizationTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier
forIndexPath:indexPath] ;
...... some details ...
}
It crashes when I attempt to dequeue a cell.
'unable to dequeue a cell with identifier AmtCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
The xib file AmortizationTableViewCell.xib is in my project and there are no errors when it is built. Is it being properly loaded in my app?