A follow on to my last question UITableViewCell custom cell using IB loading data probably best to start a new one for a new question!
My Custom cell is loading (designed in IB)
Here is my xib file for the custom cell:
And heres how it loads in my table:
因此,它不为习俗细胞装上大体(但把案文装上正确的标签,把蓝arrow装在右边)
在这里,该法典如何充实表格:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
ViewRoutesCell * aCell = (ViewRoutesCell *)[tableView dequeueReusableCellWithIdentifier:@"ViewRoutesCell"];
if (aCell == nil)
{
NSArray *arr = [[NSBundle mainBundle] loadNibNamed:@"ViewRoutesCell" owner:self options:nil];
for (NSObject *anObj in arr) {
if([anObj isKindOfClass:[ViewRoutesCell class]]) {
aCell = (ViewRoutesCell *)anObj;
aCell.lblRouteText.text = [arryRouteText objectAtIndex:indexPath.row];
aCell.lblRouteImage.text = [arryRouteImage objectAtIndex:indexPath.row];
}
}
}
return aCell;
}
我在给囚室装上什么错误?
纽约总部