【发布时间】:2013-03-26 00:28:47
【问题描述】:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"CustomCell";
CustomCell *cell = (CustomCell*) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil)
{
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil];
cell = [nib objectAtIndex:0];
}
在 ios 6 模拟器上完美运行,但在 ios 5 模拟器上崩溃并出现以下错误: 'NSInternalInconsistencyException', reason: 'NIB 数据无效。
苹果有什么改变吗?
【问题讨论】:
标签: xcode uitableview xcode4.5 loadnibnamed