I have to display NSmutableArray data in UIlabel .But only the last index text is getting added .Here is my code
marray:
(
{
ID=1;
}
{
ID="2"
}
)
for(int i=0;i<[marray count];i++)
{
eventName=[[arr2 objectAtIndex:i]objectForKey:@"Code"];
label.text=[NSString stringWithFormat:@"ID :%@",eventName ];
}
I have to display these ID’s in UIlabel with text as : 1 , 2
How can I do it?
1 Answer