Ich habe eine json Array as-Wie werden Json-Array-Daten in UICollectionViewCell mit UITableview-Zeilen angezeigt?
(
(
(
xyz,
abc,
efg,
hij
),
(
suv,
xyz,
pqr,
lmn
),
(
kmn,
mno,
"uvw",
"xt"
),
(
"pqr",
lm
)
),
)
Problem ist, dass ich jeden Namen in einer „Tableview“ Zeilen in Satz angezeigt werden soll, wie oben in json Datenarray gegeben. Das ist, warum ich einer Tabellen- inside "UICollectionViewCell" als
Ich mag dieses
Inside "GroupCollectionViewCell" tue bin mit -
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"TableCell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
}
cell.textLabel.text =[_groupData objectAtIndex:indexPath.row];
return cell;
}
Inside "ViewController.h" -
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
GroupCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:reuseIdentifier forIndexPath:indexPath];
if (cell == nil) {
cell = [[GroupCollectionViewCell alloc] init];
// [cell.groupData addObjectsFromArray:_grouplist];
//:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
[cell loadTableData:_grouplist];
cell.delegate=self;
return cell;
}
Sie meinen SALES sagen, MARKETING, LEGAL, COMPLIANCE in der Tabellenansicht von 1st CollectionViewCell Excel, Outlook, CMM, Proprietär in der Tabelle der nächsten Zelle? –
Ihre _groupData haben korrekte Werte? – Signare
Ja, nur so .. @AbhishekPM –