- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return self.nameList.count;
}
-(UITableViewCell *)tableview:(UITableView *)tableview cellForRowAtIndexPath:(NSIndexPath *)indexPath{
static NSString *CellIdentifier=@"Cell";
UITableViewCell *cell=[tableview dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell==nil) {
cell=[[UITableViewCell alloc]initWithFrame:CGRectZero reuseIdentifier:CellIdentifier];
//cell = [[UITableViewCell alloc]
// initWithStyle:UITableViewCellStyleDefault
// reuseIdentifier:CellIdentifier];
}
//Setup the cell
NSString *cellValue=[ListofItems objectAtIndex:indexPath.row];
cell.text=cellValue;
cell.textLabel.text = [self.nameList objectAtIndex: [indexPath row]];
return cell;
}
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
Привет, ребята, у меня есть эти коды, и я не вижу свои значения в моем табличном представлении.? И это говорит: «Программа получила сигнал sigabrt». Вы можете помочь мне, где моя ошибка?