I am trying to fill the array with the objects till the specified count and when that count is reached ,I will not add the objects to the array and I am able to do that..
But what I am want is suppose I have given count 7,and & objects are added into the array,so when I want to add the 8th object the object and index 0 should be pushed out and all the objects should be take their their new positions to make place for new object.
So friends how can this be done
from the below comments I tried this code
if(count ==7)
{
[array1 removelastObject] ;
}
[array1 insertObject:orderGroup atIndex:0 ] ;
and It works…
Thank you very much friends..
Regards
Ranjit
1 Answer