hi there,
I am struggling to place my 100 items from my plist into a label, one string at a time, at the push of a button. Here is the relevant code I am trying. Any help would be super 🙂
have I put the for loop in the wrong place?? when I run it it just repeatedly pulls the same one string.
thanks 😱😱:
I am struggling to place my 100 items from my plist into a label, one string at a time, at the push of a button. Here is the relevant code I am trying. Any help would be super 🙂
Code:
int x;
for (x=1;x<=100;x=x+1);
NSString *arrayData1 = [array1 objectAtIndex:x];
myLabel.text = arrayData1;
have I put the for loop in the wrong place?? when I run it it just repeatedly pulls the same one string.
thanks 😱😱: