Note that there are some explanatory texts on larger screens.

plurals
  1. POSame result in every row
    text
    copied!<p>This is the code for setting text into the tablerows:</p> <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath: (NSIndexPath *)indexPath { UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"UITableViewCell"]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"UITableViewCell"]; } NSString *basis = [chunks objectAtIndex:indexPath.row]; NSLog(@"ONTVANG: %@", basis); NSArray *words2 = [basis componentsSeparatedByString:@":"]; for (NSString *word2 in words2) [chunks2 addObject:word2]; NSLog(@"Artikelnaam: %@", chunks2); NSString *artikelnaamfull = [chunks2 objectAtIndex:2]; NSString *artikelnaam = [artikelnaamfull stringByReplacingOccurrencesOfString:@"Omschr =" withString:@""]; cell.textLabel.text = artikelnaam; return cell; } </code></pre> <p>Chucks is:</p> <pre><code>( "Expnr=672 :Artnr=LB-151 :Omschr = Bord plat 25 cm :Datum=2-9-2013 0:00:00:Aantal=1:Exclusief=1,61:Inclusief=1,948100:Loca_id=0490", "Expnr=672 :Artnr=LZ01-0032 :Omschr = Alu. decoboot H31 cm :Datum=2-9-2013 0:00:00:Aantal=1:Exclusief=12,36:Inclusief=14,955600:Loca_id=0490", "Expnr=672 :Artnr=LZ02-0006 :Omschr = Windlicht antwhite L :Datum=2-9-2013 0:00:00:Aantal=1:Exclusief=24,75:Inclusief=29,947500:Loca_id=0490", "Expnr=672 :Artnr=LZ02-0012 :Omschr = Windlicht antwhite L :Datum=2-9-2013 0:00:00:Aantal=1:Exclusief=24,75:Inclusief=29,947500:Loca_id=0490", "Expnr=672 :Artnr=LZ02-0065 :Omschr = Kastje met 3 hangers :Datum=2-9-2013 0:00:00:Aantal=1:Exclusief=10,70:Inclusief=12,947000:Loca_id=0490", "Expnr=672 :Artnr=LZ03-0013 :Omschr = Pot RND 34,5x10 zwart :Datum=2-9-2013 0:00:00:Aantal=1:Exclusief=12,36:Inclusief=14,955600:Loca_id=0490", "Expnr=672 :Artnr=ML-658 :Omschr = Schaaltje porselein 102x70 mm :Datum=2-9-2013 0:00:00:Aantal=8:Exclusief=5,92:Inclusief=7,163200:Loca_id=0490", "Expnr=672 :Artnr=ML-817 :Omschr = Beker 180 cc :Datum=2-9-2013 0:00:00:Aantal=10:Exclusief=8,30:Inclusief=10,043000:Loca_id=0490", "Expnr=672 :Artnr=ML-843 :Omschr = Voorraadpot glas 11x11x15 cm :Datum=2-9-2013 0:00:00:Aantal=1:Exclusief=2,07:Inclusief=2,504700:Loca_id=0490", "Expnr=672 :Artnr=ML-846 :Omschr = Theelichthouder 8 cm zilver :Datum=2-9-2013 0:00:00:Aantal=2:Exclusief=2,48:Inclusief=3,000800:Loca_id=0490", "Totalex= 209", "Totalin= 263" </code></pre> <p>)</p> <p>I must have different "Omschr" on different rows.</p> <p>But i've got on every row the same text. How to fix this?</p> <p>Thanks a lot!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload