Hi,When your app crashes on the simulator without any error messages , this means that you are over releasing an object or you are calling a function or variable on a deallocated instance.When you are going through such a scenario , do this 1) On Xcode top bar click on Project - > Edit Active Executable2) Now you will get a window with two textboxes , the second textbox name is "Variables to be set in the environment"3) Click on "+" button below , now you will have to add a new field4) Now type the name entry as NSZombieEnabled and put its value as YES , ensure this entry is ticked5) Clean your project and build, just before crash you will the object which is getting deallocated.if u cant follow the above instructions just search for NSZombieEnabled in google 😛I have not worked with identity results , but i can say that your graphics object whose reference u stored may be getting released.Do something like thisAGSSymbol* symbol = [AGSSimpleMarkerSymbol simpleMarkerSymbol];symbol.color = [UIColor colorWithRed:0 green:0 blue:1 alpha:0.5];for (AGSIdentifyResult* result in results) {result.feature.symbol = symbol;result.feature.infoTemplate = wellTemplate;[self.graphicsLayer addGraphic:result.feature];featureDetailViewController.feature = result.feature ; // try adding this statement in here}[self.graphicsLayer dataChanged];Get back to me if u have any problems Regards,Harikant Jammi
-[AGSGraphic retain]: message sent to deallocated instance 0xb7556e0This means that the graphic object whose reference you were getting in the clickAccessory function got garbage collected, so its no more in existence. So when you were calling any message on that deallocated object , it crashed. So your object got prematurely released.Why don't you comment out removeAllGraphics command in your code. Tell me if it crashes then.If still you face a problem then I will have to take a look at your code. Fell free to contact me any time. My email id is harikant_jammi@yahoo.co.in and IM is jvrgopal@gmail.com
It works! after commenting out the remove graphics I can now pull up my tables in a table view. But now I have a new problem, How do I remove the graphics that have been drawn? is it as easy as creating a new IBAction?-(IBAction)removeGraphics:(id)sender { [self.graphicsLayer removeAllGraphics];}I have tried this in the past and had issues, as in nothing happened.So now that I have the zombie figured out, what is the proper way to clear the graphics?Again, Thanks for your help. I am new to development work so any help I can get is really appreciated!
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.