Hi,
talking about the feature to reorder items in STV 4.x (as it is explained in the manual), anyway I rearrange cells and then I fetch data in the code, I have always the same order (order is the attribute of the entity, as explained in the manual). This can be the initial situation:
- English
- German
- Italian
If I rearrange the cells manually in the app, I can have this situation:
- Italian
- English
- German
but when I fetch data with:
for (i = 0; i < arrayOfTheEntity.count; i++) {
NSLog (@"Element %i = %@", i, [[returnArray2 objectAtIndex: i] valueForKey:@"order"]);
NSLog (@"Element %i = %@", i, [[returnArray2 objectAtIndex: i] valueForKey:@"language"]);
}
I got the same situation as the first time:
- English (order:0)
- German (order:1)
- Italian (order:2)
although I see something else.
So, the question is: when I reorder the cells, where is their real index stored? The entity does not seem to hold it through the order attribute, which seems not to change.
Thanks for your help
Fabio