Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
应用程序因uitableviewcell而终止_Uitableview - Fatal编程技术网

应用程序因uitableviewcell而终止

应用程序因uitableviewcell而终止,uitableview,Uitableview,由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:'-[UITableViewCell tabletitle]: 这是我运行模拟器时的错误 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString * cellItem = @"sample"; TableViewCell

由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:'-[UITableViewCell tabletitle]: 这是我运行模拟器时的错误

- (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单元格的类别