Тогда вы должны кодировать по-другому,
[myArrayNew objectAtIndex:indexPath.row];
вернет массив объектов, а не строку.
EDIT:
Вы можете использовать секционное представление таблицы для отображения массива массива.
Так что код следующий,
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
// Return the number of sections.
return [myArrayNew count];
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
// Return the number of rows in the section.
return [[myArrayNew objectAtIndex:section]count];
}
// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}
// Configure the cell...
NSString *cellValue = [[myArrayNew objectAtIndex:section]objectAtIndex:indexPath.row];
cell.textLabel.text = cellValue;
return cell;
}