int i = 0;
while (i != 1) {
if (myData1 != nil && myData2 != nil && myData3 != nil && myData4 != nil && myData5 != nil && myData6 != nil) {
//can you add a nil object to an array
[myMA addObject:myData1];
[myMA addObject:myData2];
[myMA addObject:myData3];
[myMA addObject:myData4];
[myMA addObject:myData5];
[myMA addObject:myData6];
i = 1;
}
} |