A Loop to load data
To load 10 records and be able to use them later I load them one by one (please don't laugh, i'm a beginner). Can someone show me how to write a loop
DataBaseSQLiteAppDelegate *appDelegate = (DataBaseSQLiteAppDelegate *)[[UIApplication sharedApplication] delegate];
Data *datax = (Data *)[appDelegate.dataInformation objectAtIndex:indexPath.row];
Data *datax0 = (Data *)[appDelegate.dataInformation objectAtIndex:0];
Data *datax1 = (Data *)[appDelegate.dataInformation objectAtIndex:1];
Data *datax2 = (Data *)[appDelegate.dataInformation objectAtIndex:2];
Data *datax3 = (Data *)[appDelegate.dataInformation objectAtIndex:3];
Data *datax4 = (Data *)[appDelegate.dataInformation objectAtIndex:4];
Data *datax5 = (Data *)[appDelegate.dataInformation objectAtIndex:5];
Data *datax6 = (Data *)[appDelegate.dataInformation objectAtIndex:6];
Data *datax7 = (Data *)[appDelegate.dataInformation objectAtIndex:7];
Data *datax8 = (Data *)[appDelegate.dataInformation objectAtIndex:8];
Data *datax9 = (Data *)[appDelegate.dataInformation objectAtIndex:9];
listContent = [[NSMutableArray alloc] initWithObjects:datax0.contact, datax1.contact, datax2.contact, datax3.contact, datax4.contact,
datax5.contact, datax6.contact, datax7.contact, datax8.contact, datax9.contact, nil];
cell.text = [filteredListContent objectAtIndex:indexPath.row];
|