how to add the element in the array using the for loop in objective-c?
Posted
by uttam
on Stack Overflow
See other posts from Stack Overflow
or by uttam
Published on 2010-05-21T11:47:57Z
Indexed on
2010/05/21
11:50 UTC
Read the original article
Hit count: 170
objective-c
|iphone
is this the right way to do the same?
nsmutablearray *myarray1 //have some data in it
for (int i=0;i< [myarray1 count]; i++)
{
myArray2 = [NSMutableArray array];
[myArray2 addObject:i];
}
and how can i print this value of myarray2.
© Stack Overflow or respective owner