AnsweredAssumed Answered

Copying a Graphic iOS

Question asked by bt_kdunaway on Aug 27, 2014
Latest reply on Aug 28, 2014 by bt_kdunaway

Im having weird issues with copying graphics.


AGSGraphic *first = .....


AGSGraphic *second = [[AGSGraphic alloc] initWithJSON:[first encodeToJSON];


If I change some of the attributes of both first and second, update first, and add second to the feature layer, because second has the same globalID as first, I get two instances of the first graphic on the feature layer.


If I check the database, the features are all correct, and the second graphic did get added and the first got updated correctly. 


I have to reload the layers in the app to see the changes.  Any ideas what could be going wrong?

I checked the graphics, when i copy the first graphic and make a copy/second graphic they have the same globalID.