应用程序因uitableviewcell而终止
由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:'-[UITableViewCell tabletitle]: 这是我运行模拟器时的错误应用程序因uitableviewcell而终止,uitableview,Uitableview,由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:'-[UITableViewCell tabletitle]: 这是我运行模拟器时的错误 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString * cellItem = @"sample"; TableViewCell
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString * cellItem = @"sample";
TableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellItem forIndexPath:indexPath];
cell.tabletitle.text=[cararray objectAtIndex:indexPath.row];
return cell;
}
这里cararray是我在视图中给出的一个数组
table title是我在TableViewCell类中给出的标签名称,我将此标签放在prototype单元格中,但在这里我无法将标签链接到该原型
@property (strong, nonatomic)IBOutlet UILabel *tabletitle;
请。。告诉我这个问题的解决办法。。
还有一件事,我使用了TabView应用程序,并在FirstViewController中进行了编辑(即,我将所有tableview和tableviewcell放置在该视图控制器中。)请回答我的问题……很抱歉,我这样做了,我刚刚更改了tableview单元格的类别